内部に相対的なレイアウトがあり、1 つのテキストビューと別のボタンがあります
ボタンは完全に配置されていますが、テキストビューの端を親の中心にする必要があります。
私のXMLは次のようになります
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/Tour_Expense_List_Detail_Tbl">
<Button
android:id="@+id/saveButton"
style="@style/ButtonText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/color_button"
android:onClick="SaveData"
android:text="Save"
android:textStyle="bold" />
<TextView
android:id="@+id/textViewTotalAmtVal"
style="@style/ButtonText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:text="Total Amount: "
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="#2E2E2E"
android:textStyle="bold" />
</RelativeLayout>