问题描述
||
我正在创建这些项目,如下所示:
<RelativeLayout android:id=\"@+id/relativeLayout1\"
android:layout_width=\"fill_parent\" android:layout_height=\"fill_parent\"
android:background=\"@drawable/bg1\" xmlns:android=\"http://schemas.android.com/apk/res/android\">
<RelativeLayout android:id=\"@+id/relativeLayout2\">top bar</RelativeLayout>
<ViewFlipper android:id=\"@+id/details\"
android:layout_below=\"@+id/relativeLayout2\" android:layout_width=\"fill_parent\"
android:layout_height=\"fill_parent\">
<RelativeLayout android:layout_width=\"fill_parent\"
android:layout_height=\"fill_parent\" android:id=\"@+id/relativeLayout3\">
<ScrollView android:layout_height=\"wrap_content\"
android:fadingEdge=\"none\" android:layout_width=\"fill_parent\">
edittext and textview
</ScrollView>
</RelativeLayout>
</ViewFlipper>
<RelativeLayout android:layout_height=\"wrap_content\"
android:id=\"@+id/relativeLayout5\" android:layout_width=\"fill_parent\"
android:layout_gravity=\"bottom\"
android:layout_alignParentBottom=\"true\" android:background=\"@drawable/bar\">
</RelativeLayout>
当我单击edittext时,将打开软输入模式,但底部栏显示键盘的上方。
请帮助我。为什么底部栏显示在键盘上方
谢谢
解决方法
也许尝试在相关的活动标签中将windowSoftInputMode设置为
adjustPan
?例如。
<activity android:windowSoftInputMode=\"adjustPan\">
那应该防止布局被软件键盘调整大小。