私は3つのボタンを並べて配置しようとしています。左側のボタンと右側のボタンは小さいボタンで、中央のボタンは残りの幅(2x2dp(=マージン))を埋める必要があります。
私は以下をコーディングしましたが、それは私の右ボタンを画面から押し続けます、これを解決する方法についてのアイデアはありますか?左のものと右のものを特権化する方法があるかもしれませんか?
<RelativeLayout
android:id="@+id/rl"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="10dp" >
<Button
android:id="@+id/bPreviousQuestion"
android:layout_width="42dp"
android:layout_height="42dp"
android:background="#c8c8c8"
android:text="<"
android:textColor="#ffffff"
android:textSize="20dp"
/>
<Button
android:id="@+id/bBack"
android:layout_width="fill_parent"
android:layout_height="42dp"
android:layout_toRightOf="@+id/bPreviousQuestion"
android:background="#c8c8c8"
android:text="Go Back"
android:textColor="#ffffff"
android:textSize="20dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp" />
<Button
android:id="@+id/bNextQuestion"
android:layout_width="42dp"
android:layout_height="42dp"
android:layout_toRightOf="@+id/bBack"
android:background="#c8c8c8"
android:text=">"
android:textColor="#ffffff"
android:textSize="20dp" />
</RelativeLayout>