Java 页脚在首选项屏幕中没有响应

Java 页脚在首选项屏幕中没有响应,java,android,android-studio,preference,Java,Android,Android Studio,Preference,我试图在首选项屏幕中添加页脚,但其中的按钮没有响应。此外,当我调用EditTextPreference时,我的页脚也会移动。。有什么想法吗 这是我的xml文件 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and

我试图在首选项屏幕中添加页脚,但其中的按钮没有响应。此外,当我调用EditTextPreference时,我的页脚也会移动。。有什么想法吗

这是我的xml文件

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

    <include layout="@layout/footer"/>
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/footer">
        <ListView
            android:id="@+id/android:list"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_weight="1" >
        </ListView>
    </RelativeLayout>
</RelativeLayout>

像这样使用布局

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


    <include
            android:id="@+id/your_footer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            layout="@layout/footer" />
    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/your_footer">
        <ListView
            android:id="@+id/android:list"
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_weight="1" >
        </ListView>
    </RelativeLayout>
</RelativeLayout>