Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android windowSoftInputMode="adjustPan" scroll some more

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?

like image 920
Airfreshener Avatar asked Jul 02 '13 10:07

Airfreshener


1 Answers

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

like image 104
RorschachDev Avatar answered Sep 17 '22 19:09

RorschachDev