Android keyboard puts tab bar on top

前端 未结 3 519
夕颜
夕颜 2021-01-05 09:06

I have a little problem when I open keyboard in my application. I have a tab bar which is on bottom of page and in some situations, not always when I click on edit text and

相关标签:
3条回答
  • 2021-01-05 09:39

    add these properties for your activity in manifest file:

    android:windowSoftInputMode="stateHidden|adjustResize|adjustPan"
    

    Hope this helps

    0 讨论(0)
  • 2021-01-05 09:41

    A simple solution would be to tell the TabBar to adjust for Softkeyboard Mode. To do this, go to your manifest file, and in the Tabbar Activity add this line,

    android:windowSoftInputMode="adjustPan"
    

    This makes your Tabbar to stay at the bottom even when the softkeyboard is visible.

    0 讨论(0)
  • 2021-01-05 09:51

    You probably want

    android:windowSoftInputMode="adjustNothing"

    There is probably some confusion over this since it's currently missing from the documentation at

    http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

    0 讨论(0)
提交回复
热议问题