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

Philip S

08/25/2022, 7:43 AM
How do you make it so the content of a
LazyColumn
is not hidden by soft keyboard and
TextInput
when scrolled to bottom? Basically I want "This is message 5" to still be visible when opening keyboard. The activity uses
android:windowSoftInputMode="adjustResize"
and I tried using some padding values from https://google.github.io/accompanist/insets/ without effect.
n

nuhkoca

08/25/2022, 8:58 AM
Did you try to set
keyboardPadding
to the very last
Text
?
p

Philip S

08/25/2022, 10:51 AM
Yes it did not help
s

ste

08/25/2022, 12:49 PM
I don't think this can be solved out of the box. At the current state, the
LazyColumn
will keep the scroll position because it only cares about the first visible item (not the last one). However, I think you can solve it easily by tracking the last visible item and ensuring it is still visible when the keyboard is opened
7 Views