Question

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" 
Was it helpful?

Solution 3

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

OTHER TIPS

add this permin your manifest might help " android:configChanges="orientation|keyboardHidden""

      <activity android:name=".MyActivity"
      android:configChanges="orientation|keyboardHidden"
      android:label="@string/app_name">

I think that setting the following value in your activity tag in your manifest should do the trick :

android:windowSoftInputMode="adjustPan"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top