https://kotlinlang.org logo
#compose
Title
# compose
s

Sam

12/07/2020, 9:38 PM
Hi, I have a brand new compose
alpha08
app from the latest android studio arctic fox canary 2 project template, the only code is this:
Copy code
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?
Found the answer via an excerpt on accompanist readme that mentions
android:windowSoftInputMode="adjustResize"
which provides the desired behavior.