flosch
08/12/2020, 10:07 AMimeActionPerformed
?Column {
OutlinedTextField(
label = { Text("Amount") },
value = amount,
onValueChange = { value -> },
imeAction = ImeAction.Next,
onImeActionPerformed = { _, controller ->
// how do I switch focus to next OutlinedTextField here?
},
keyboardType = KeyboardType.Number
)
Spacer(modifier = Modifier.height(12.dp))
OutlinedTextField(
label = { Text("Reason") },
value = reason,
onValueChange = { value -> },
imeAction = ImeAction.Done,
onImeActionPerformed = { _, controller -> controller?.hideSoftwareKeyboard() }
)
}
Zach Klippenstein (he/him) [MOD]
08/12/2020, 1:37 PMflosch
08/12/2020, 1:41 PMFocusRequester
but then thought that it looked too complicated for the good old regular “ImeAction Next-> Focus Next Focusable View” use case. I’ll try to look more into that API then for nowZach Klippenstein (he/him) [MOD]
08/12/2020, 1:50 PMfocus
modifier seems unintuitive. Hopefully some docs will eventually clear things up.