【发布时间】:2011-05-30 05:29:41
【问题描述】:
这是我的 XML 布局:
<?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">
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</ListView>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_alignParentBottom="true">
<EditText xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight="1" />
<Button xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_weight="2" />
</LinearLayout>
</RelativeLayout>
导致这个问题的原因:
列表视图项(红色轮廓)在固定页脚后面,不能使用。任何解决方案?
更新:
我宁愿指出我的代码中的更改以解决该问题,然后进行某种解释。但这只是我的偏好。
【问题讨论】:
标签: android xml listview footer