How does Android determine whether to move the layout when the on-screen keyboard is displayed?
Note. I know that the activity property android:windowSoftInputMode="adjustResize|adjustResize|adjustUnspecified" exists as described here http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft , but in my case this does not seem to have any effect. It is my problem:
I have two actions, almost the same layout, but the first uses a ListView that contains a list of buttons . The second action contains a scroll with buttons . The rest is the same, the same number of buttons, the same height of the elements, etc.
Now, when I click the search button to open the search input panel, in my first action all the layouts move up. During the second action, the layout does not move up, and the on-screen keyboard is simply displayed on top of it. This is actually the way I want him to behave. How can I achieve the same with my activity as with ListView?
In my manifest, initially I did not specify any android:windowSoftInputMode , but even if I do, it does not matter; I tried all three values ββ(adjustPan, adjustResize, adjustUndefined, without any differences).
This is my layout:
1) http://pastebin.com/5zzVxjbK
2) http://pastebin.com/KFtPuHvP
Interesting, however: when I set the ListView visibility in my layout 1 (left) to View.INVISIBLE, then the layout will not be moved up!

android android-manifest
Mathias conradt
source share