Android 当软件键盘打开时,无法在scrollView中完全向上滚动

Android 当软件键盘打开时,无法在scrollView中完全向上滚动,android,android-scrollview,Android,Android Scrollview,我正在开发一个全屏Android应用程序,下面是我面临的一个奇怪问题: 当软件键盘打开时,我无法完全滚动滚动滚动视图。如果活动不是全屏活动,则没有问题(我已选中)。随附的是xml代码片段和图像: 通常查看活动: 当键盘打开时: 我正在从数据库行动态填充表布局 以下是xml代码: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/re

我正在开发一个全屏Android应用程序,下面是我面临的一个奇怪问题: 当软件键盘打开时,我无法完全滚动滚动滚动视图。如果活动不是全屏活动,则没有问题(我已选中)。随附的是xml代码片段和图像:

通常查看活动:

当键盘打开时:

我正在从数据库行动态填充表布局

以下是xml代码:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" 
    android:fillViewport="true">

    <RelativeLayout
        android:id="@+id/RelativeLayout1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:text="Spent For :"
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <TableLayout
            android:id="@+id/TableLayout1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/textView1" >
        </TableLayout>

        <TextView
            android:id="@+id/textView2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/TableLayout1"
            android:text="Given By :"
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <TableLayout
            android:id="@+id/TableLayout2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/textView2" >
        </TableLayout>

        <TextView
            android:id="@+id/textView3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/TableLayout2"
            android:text="Enter a description :"
            android:textAppearance="?android:attr/textAppearanceLarge" />

        <EditText
            android:id="@+id/editText1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/textView3"
            android:ems="10" >

            <requestFocus />
        </EditText>

        <Button
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/editText1"
            android:text="Button" />
    </RelativeLayout>

</ScrollView>