ActiveParent with no focused child in compose
I can’t share the actual code, but I can describe the issue I’m facing. My screen has two tabs: one for login and one for sign-up. Both tabs are inside a horizontal pager, and they’re navigated to from Screen B using Compose Navigation, like navController.navigate(ScreenA).
TextField passed in lambda loses focus when in both branches of “if” block
I have some content with textfields passed as a lambda to another composable. Lambda is always a part of layout as it’s in both branches of if statement, however when condition of ‘if’ changes – text fields lose focus. Is there any way to prevent it while keeping current structure?
Compose TextField lose focus when newline on Samsung Note 10 Lite
Surface { Box(contentAlignment = Alignment.Center, modifier = Modifier .fillMaxSize() .padding(32.dp)) { var state by remember { mutableStateOf(TextFieldValue(“”)) } TextField(value = state, onValueChange = { state = it }, keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text), ) }} Those code are my TextField and it lose focus when I click the newline button at soft keyboard. This situation […]
Compose TextField lose focus when newline on Samsung Note 10 Lite
Surface { Box(contentAlignment = Alignment.Center, modifier = Modifier .fillMaxSize() .padding(32.dp)) { var state by remember { mutableStateOf(TextFieldValue(“”)) } TextField(value = state, onValueChange = { state = it }, keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text), ) }} Those code are my TextField and it lose focus when I click the newline button at soft keyboard. This situation […]
android compose soft keyboard
I am trying to create a fully custom TextField in Android using Jetpack compose