【发布时间】:2015-03-11 06:57:46
【问题描述】:
我在将我的应用程序中唯一的按钮放置在屏幕右下角时遇到了问题。代码如下:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"
android:paddingBottom="16dp" >
<ExpandableListView
android:id="@+id/exp_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="#A4C739"
android:dividerHeight="0.5dp"
android:indicatorLeft="?android:attr/expandableListPreferredItemPaddingLeft" >
</ExpandableListView>
<Button
android:id="@+id/btnDisplayMessage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/exp_list"
android:layout_below="@+id/exp_list"
android:layout_marginLeft="40dp"
android:gravity="bottom"
android:text="@string/next" />
</RelativeLayout>
【问题讨论】: