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.
For the guy's who still have this issue even with
android:fitsSystemWindows="true"
in the ScrollView.I found few ways to solve it:
fragment.xml
layout RelativeLayour and putandroid:fitsSystemWindows="true"
inside. ScrollView use as a child of RelativeLayour.Both options should be used with
android:windowSoftInputMode="adjustResize"
and works on Android 5 with<item name="android:windowTranslucentStatus">true</item>
flag. `the problem was that it didn't work with translucent status bar and i had to set
in my main layout
Nothing I've tried has worked and Ive gone through every single concievable combination of different Manifest settings etc to no avail.
Its a little hacky but it works beautifully for me: