keyboard lifts tabview above
-
28-06-2021 - |
سؤال
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"
المحلول 3
I solved this by specifying android:windowSoftInputMode"adjustResize | adjustPan" in tabactivity.
نصائح أخرى
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"