Slavi
11/18/2023, 1:12 PMvar email by remember { mutableStateOf("") }
var password by remember { mutableStateOf("") }
Column(
modifier = Modifier.fillMaxSize(),
) {
TextField(
value = email,
onValueChange = { email = it },
)
TextField(
value = password,
onValueChange = { password = it },
)
}
Joel Denke
11/18/2023, 1:28 PMModifier
.focusProperties { right = Default }
.focusProperties { right = item1 }
.focusProperties { right = item2 }
.focusable()
Slavi
11/18/2023, 1:44 PMJoel Denke
11/18/2023, 2:29 PMSlavi
11/19/2023, 8:35 AMval emailFocusRequester = remember { FocusRequester() }
val passwordFocusRequester = remember { FocusRequester() }
var email by remember { mutableStateOf("") }
var password by remember { mutableStateOf("") }
Column {
TextField(
modifier = Modifier
.focusRequester(emailFocusRequester)
.focusProperties { right = passwordFocusRequester },
value = email,
onValueChange = { email = it },
)
TextField(
modifier = Modifier
.focusRequester(passwordFocusRequester)
.focusProperties {
left = emailFocusRequester
right = FocusRequester.Default
},
value = password,
onValueChange = { password = it },
)
}
is what Joel advised me to try, then it didn't work as well. I still see keyboard being turned down and pulled back on every click to neighbour text fieldKashismails
11/20/2023, 10:53 AMSlavi
11/20/2023, 3:17 PMKashismails
11/20/2023, 3:31 PMSlavi
11/20/2023, 3:36 PMKashismails
11/20/2023, 3:37 PMSlavi
11/29/2023, 8:29 AMKashismails
11/29/2023, 8:30 AM