adjpd
09/16/2021, 11:13 PMBasicTextField
, the keyboard covers the input. Is this expected behavior (even with adjustResize
)?
LazyColumn {
items((1..100).toList()) { BasicTextField("$it", {}) }
}
adjpd
09/16/2021, 11:38 PM<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayoutandroid:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:text="hi there"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</EditText>
...
</LinearLayout>
</ScrollView>
I'm not sure why Compose doesn't do the same with lists currently.
A Box
(with adjustResize
set on your AndroidManifest.xml
) scrolls the BasicEditField
upwards just fine, it should be noted. But this approach doesn't work with lists, as mentioned above.
Box(Modifier.fillMaxSize()) {
BasicTextField(
"This works",
{},
Modifier.align(Alignment.BottomStart)
)
}
Waqas Tahir
09/20/2021, 10:52 AMWaqas Tahir
09/20/2021, 10:54 AMadjpd
09/20/2021, 12:58 PMRelocationRequester
. I've found a hacky solution with onFocusChanged
.
.onFocusChanged {
if("$it" == "Active") {
scope.launch {
delay(200)
relocationRequester.bringIntoView()
}
}
}
adjpd
09/20/2021, 1:00 PMdelay
and having to convert FocusState
to a string to get to the internal FocusStateImpl.Active
value. Seems to work for simple cases, however.batuhan ardor
11/01/2021, 8:36 PM