我的视图没有填满屏幕,但是当键盘出现时,您无法向下滚动到现在覆盖的几个字段.我尝试在清单和类中添加adjustSize,adjustPan.xml类似于以下条目:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/s"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/TableLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<!-- TextViews & EditTexts are here -->
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<!-- TextViews & EditTexts are here -->
</TableRow>
<TableRow
android:id="@+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<!-- TextViews & EditTexts are here -->
</TableRow>
<TableRow
android:id="@+id/tableRow4"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<!-- TextViews & EditTexts are here -->
</TableRow>
<TableRow
android:id="@+id/tableRow5"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<!-- TextViews & EditTexts are here …Run Code Online (Sandbox Code Playgroud)