Java 带文本视图的页脚

Java 带文本视图的页脚,java,android,android-studio,footer,Java,Android,Android Studio,Footer,我正在更新一个几年前有人开发的应用程序,我试图添加一个一直可见的页脚。我正在努力将其添加到我的一项活动中,但结果如下: 这是我的.xml文件 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_heig

我正在更新一个几年前有人开发的应用程序,我试图添加一个一直可见的页脚。我正在努力将其添加到我的一项活动中,但结果如下:

这是我的.xml文件

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

<!-- Footer -->
<include layout="@layout/footer"/>
<RelativeLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_above="@+id/footer">
    <TextView
        android:id="@+id/list_items"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="10dp"
        android:textSize="22dp" >
    </TextView>
</RelativeLayout>

这是我的电话

setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item, R.id.list_items, mRegions));
setListAdapter(新的ArrayAdapter(this,R.layout.list_项,R.id.list_项,mRegions));

提前谢谢

我想你必须用
列表视图
id=“@id/android:list”
)创建一个布局,并用
布局将你的页脚放入其中。你会在哪里找到它?张贴你的页脚布局