Aks*_*iom 2 android listactivity android-layout
我知道有很多类似的问题,但我找不到能帮到我的答案,所以这是我的问题.我设法做到了这一点:

但我想要的是这个:

所以我想在屏幕底部有一个固定按钮.我的布局是ListActivity的自定义布局,它看起来像这样:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="Delete" />
<TextView
android:id="@+id/label"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toRightOf="@+id/button1"
android:text="@+id/label"
android:gravity="center"
android:textSize="20px" >
</TextView>
<ImageButton
android:id="@+id/rightArrow"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:background="@null"
android:layout_alignParentRight="true"
android:src="@drawable/right_arrow"
/>
Run Code Online (Sandbox Code Playgroud)