Android键盘隐藏编辑文本字段
如何在以下XML布局中限制键盘隐藏的编辑文本。在这个蓝色区域是屏幕的页眉和页脚,在页眉和页脚之间,我已将编辑文本置于“滚动视图”下以获取用户信息,不应滚动加热器和页脚,以便将编辑文本字段置于“滚动视图”下 根据以下例外情况,编辑文本由键盘覆盖。我如何克服这个问题 我在清单中添加了调整平移和调整大小选项Android键盘隐藏编辑文本字段,android,android-layout,android-keypad,android-screen,Android,Android Layout,Android Keypad,Android Screen,如何在以下XML布局中限制键盘隐藏的编辑文本。在这个蓝色区域是屏幕的页眉和页脚,在页眉和页脚之间,我已将编辑文本置于“滚动视图”下以获取用户信息,不应滚动加热器和页脚,以便将编辑文本字段置于“滚动视图”下 根据以下例外情况,编辑文本由键盘覆盖。我如何克服这个问题 我在清单中添加了调整平移和调整大小选项 <activity android:name=".TestActivity6" android:screenOrientation="portrait" androi
<activity
android:name=".TestActivity6"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|adjustResize" />
尝试在上一次编辑文本中添加一些下边距在编辑文本中使用此属性安卓:imeOptions=“flagNoFullscreen”安卓:WindowsofInputMode=“StateAllwayshidden | adjustPan
使用此属性。希望它能起作用让我反馈一下35; M.A.Murali
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:id="@+id/test_reg_top"
android:layout_width="fill_parent"
android:layout_height="130dp"
android:layout_alignParentTop="true"
android:background="#0000A1" />
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/test_reg_bottom"
android:layout_below="@+id/test_reg_top"
android:background="#BBBCCC">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<EditText
android:id="@+id/test_reg_et1"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="5dp"
android:background="#E6E6E6"
android:hint="text1"
android:nextFocusDown="@+id/test_reg_et2"
android:singleLine="true" />
<EditText
android:id="@+id/test_reg_et2"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="5dp"
android:background="#E6E6E6"
android:hint="text2"
android:nextFocusDown="@+id/test_reg_et3"
android:singleLine="true" />
<EditText
android:id="@+id/test_reg_et3"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="5dp"
android:background="#E6E6E6"
android:hint="text3"
android:nextFocusDown="@+id/test_reg_et4"
android:singleLine="true" />
<EditText
android:id="@+id/test_reg_et4"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="5dp"
android:background="#E6E6E6"
android:hint="text4"
android:nextFocusDown="@+id/test_reg_et5"
android:singleLine="true" />
<EditText
android:id="@+id/test_reg_et5"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_marginTop="5dp"
android:background="#E6E6E6"
android:hint="text5"
android:imeOptions="actionDone"
android:singleLine="true" />
</LinearLayout>
</ScrollView>
<RelativeLayout
android:id="@+id/test_reg_bottom"
android:layout_width="fill_parent"
android:layout_height="130dp"
android:layout_alignParentBottom="true"
android:background="#0000A1" />
</RelativeLayout>