Search code examples
androidandroid-softkeyboardandroid-tabactivity

keyboard lifts tabview above


In my app, when I click on EditText keyboard lifts the TabView above. I have used this android:windowSoftInputMode="stateVisible|adjustResize" in Android manifest file. I am using activity group. So I used this in both activity and activity group. In activity programmatically I used this

this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

But no success.

In TabActivty class I have four tabs. I am using ActivityGroup. I don't know where I am doing somthing wrong.

In Manifest file I used this in activty group and activity

android:windowSoftInputMode="stateVisible|adjustResize" 

Solution

  • I solved this by specifying android:windowSoftInputMode"adjustResize | adjustPan" in tabactivity.