我在屏幕下方设置了一个tabhost,屏幕上方是一个edittext,当我点击editext时,屏幕键盘跳起来,并将tabhost提升到屏幕中间。我只想要tabhost保持在底部,即使是keyboayd diaplay。
答案 0 :(得分:17)
对于所有面临此问题的人,
android:windowSoftInputMode="adjustPan|adjustResize"
check this link: SoftKeyboard problem with Tabhost on bottom of screen
答案 1 :(得分:5)
在您的AndroidManifest文件中为TabActivityClass
添加activity标记的此属性android:windowSoftInputMode="adjustPan"