Android windowSoftInputMode="adjustPan" scroll some more

Airfreshener picture Airfreshener · Jul 2, 2013 · Viewed 23.5k times · Source

Consider the following example for a view:

<LinearLayout>
    <EditText />
    <Button />
</LinearLayout>

And in in the manifest file:

android:windowSoftInputMode="adjustPan"

onfocus edittext, the soft keyboard covers a button like so:

enter image description here

but I'd like it like this:

enter image description here

How to scroll view a little more so that the button is visible?

Answer

RorschachDev picture RorschachDev · Sep 20, 2013

I just found this post and saw it was unanswered. For the sake of helping others who may come use this in the manifest for activity

android:windowSoftInputMode="stateUnchanged|adjustResize"

try just one and see if that suits your needs.

Good luck