Tazz Tazz - 8 months ago 75
Android Question

Android - adjust scrollview when keyboard is up for android 5.0 (lollipop)

I have a problem on android lollipop, screen doesn't adjust size when the softkeyboard comes up.

This is my manifest intro example from one of the activity i made:

android:windowSoftInputMode="stateAlwaysHidden|adjustResize"


Is there something new that is added and we have to take into account for android 5.0 ? The scrollview works fine on android < 5.0.

Answer Source

the problem was that it didn't work with translucent status bar and i had to set

 android:fitsSystemWindows="true"

in my main layout

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download