Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActionBar is hiding when keyboard appears

I'm using ActionBarSherlock. windowSoftInputMode is adjustPan (I've tried with adjustResize and adjustNothing also).

I want to keep ActionBar on screen when keyboard appears but slide my layout instead (so text remains visible).

Here is how it looks right: enter image description here

And when keyboard is appeared: enter image description here

Question is: how can I keep ActionBar visible while using adjustPan (so EditTexts will always be visible)?

NOTE I can't use ScrollView to hold my View

like image 815
Dmitry Zaytsev Avatar asked Nov 03 '22 10:11

Dmitry Zaytsev


1 Answers

I find out, that there may be problems with adjustResize (for some reason it's just uses adjustPan instead) when you applying FLAG_FULLSCREEN to Window of Activity:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
            WindowManager.LayoutParams.FLAG_FULLSCREEN);

Without this line resizing working just fine.

like image 175
Dmitry Zaytsev Avatar answered Nov 11 '22 08:11

Dmitry Zaytsev