I have a simple sign-in screen with two TextFields. When I press on either field, the layout scrolls up so that the field is above the Keyboard. So far so good.
However, if I request focus with FocusRequester on the TextField (as a result of ImeAction.Next), the cursor moves to the right field, but the layout is not scrolled - the textfield is focused but hidden by keyboard. Any ideas how to cope with that?
Compose 1.0.0-beta-06
➕ 1
Michal Klimczak
05/18/2021, 3:16 PM
I didn't set
windowSoftInputMode
. If I set it to
adjustPan
it behaves the same. If I set it to
adjustResize
it's not scrolled ever.
Michal Klimczak
05/18/2021, 3:49 PM
using
adjustResize
with Accompanist
ProvideWindowInsets
and
.navigationBarsWithImePadding()
makes the whole view shift the right way and now it's visible, so it's kinda fixed for me 🤷
r
Roshan P Varghese
06/03/2021, 7:20 AM
Did you add .navigationBarsWithImePadding() to the modifier of root composable in Activity?