andriangungon
6/11/2018 - 4:01 PM

make content scrollable when keyboard is open

take note that using these codes won't work the content scrolling

Window window = getWindow(); window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); //this won't work

IMPORTANT: on you xml LinearLayout add this code android:fitsSystemWindows="true"

I used this codes in IXM App Contact Activity

<activity
            android:name=".ui.ContactUsActivity"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="stateHidden|adjustResize" // this code
            android:parentActivityName=".ui.PeopleActivity" />