Skip to content Skip to sidebar Skip to footer

Background Glitch On Keyboard Closure

I'm facing a situation with a little complex fragment layout xml of mine, So the hierarchy follows as: RelativeLayout (no background) --ScrollView (fillViewPort=true, scrollbars=no

Solution 1:

Use this in your base activity onCreate() after super.onCreate(savedInstanceState);

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);

or

Add these lines in your manifest under your activity tag

android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
        android:windowSoftInputMode="stateHidden|adjustPan"

Post a Comment for "Background Glitch On Keyboard Closure"