https://kotlinlang.org logo
#android-architecture
Title
# android-architecture
m

mattinger

12/21/2021, 3:01 AM
I’m having a bit of an issue with compose (see pictures in thread). I have full page content with buttons anchored at the bottom. When i click in a text field, the keyboard is appearing and pushing the buttons up, which ends up shrinking the column the input text is in, and pushing into the scrollable area offscreen.
message has been deleted
message has been deleted
Update on this. I had to add a layout listener to grab the Y position of the text field on layout, and then add a LaunchedEffect to monitor when the keyboard opens and closes. When it opens, i forcibly scroll to the text field. it’s kind of ugly, but it works.
This only works when the text field is a direct descendant of the column 😞
why must they make it so difficult to do basic ui things
4 Views