开发者

Android TabBar - Slides up along with the keyboard opening up

Is there a way to not have the tab bar slide up along with the keyboard when a user touches the textbox in开发者_StackOverflow a screen?

Right now, in the default implementation, along with the keyboard opening up, the tab bar moves upwards and is visible.

Thanks for your help.


I'm using fragments with EditText and no scroll view inside them and I still had that problem. A solution for me was to add the android:windowSoftInputMode="adjustPan" property to the activity in the manifest. Not sure if it will work for normal activities, but perhaps this is a good place to start:

<activity android:name=".MyActivity" android:windowSoftInputMode="adjustPan" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜