私は相対レイアウトを使用しており、画面の下部にボタンを設定したいのですが、これによりすべてが下部に配置され、マージンが必要になるため、画面の端との間にスペースがあります/ビューとボタン。しかし、私がボタンマージンを何をしても、何らかの理由で2.1以降では何もしません。相対的なレイアウトには背景が含まれているので、その余白はできません。
誰でもこれの修正を知っていますか?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="0dp"
android:background="@drawable/background" >
<Button
android:id="@+id/confirm_mobile_button_next"
android:layout_width="fill_parent"
android:layout_height="40dip"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="false"
android:layout_centerHorizontal="false"
android:layout_centerInParent="false"
android:layout_margin="15dp"
android:background="@drawable/button_shape_selector"
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:text="@string/confirm_mobile_no_continue"
android:textColor="@color/white"
android:textStyle="bold" />
</RelativeLayout>