Sam
12/07/2020, 9:38 PMalpha08
app from the latest android studio arctic fox canary 2 project template, the only code is this:
Column(Modifier.fillMaxSize()) {
Text("title")
ScrollableColumn {
Text("message")
}
val text = remember { mutableStateOf(TextFieldValue()) }
OutlinedTextField(
value = text.value,
onValueChange = { text.value = it },
placeholder = { Text(text = "Watch me animate...") },
modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp, vertical = 8.dp)
)
}
My question is, why is it that when I focus the software keyboard on a Pixel 4a device, does everything get shifted up so that the keyboard stays in view? How can I disable this behavior so that I have more fine grained control, for example using accompanist
lib for insets?android:windowSoftInputMode="adjustResize"
which provides the desired behavior.