嗨我已经创建了一个listActivity,其中包含一些数据行,并在屏幕的底部(不是列表)我已经把一个按钮。我的问题是,如果我的列表已满,因此需要滚动以便看到其他行,该按钮似乎是透明的并且与列表的最后一个元素重叠。所以它看起来并不令人愉快。您是否有任何建议解决这个问题?有没有办法让我的列表为底部按钮留下一些空间?我不想用footer view来实现它。我会发布xml文件,以便可以有更清晰的图片。ListActivity与底部按钮
<?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" >
<DragNDrop.DragNDropListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_weight="1" >
</DragNDrop.DragNDropListView>
<Button
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:alpha="1"
android:drawableLeft="@drawable/back"
android:text="Return" />
</RelativeLayout>
ok我尝试了一切似乎正在工作,因为我想非常感谢大家的答案和时间 – Libathos 2012-07-31 08:20:56