How can I have my checkbox aligned on the right and have the checkbox symbol after the text? I am targeting API 15 and above
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/linearLayout1">
<TextView
android:text="@string/please_choose_an_area"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/textView2"
android:textSize="20sp"
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="15dp" />
<CheckBox
android:text="All"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/checkBox1"
android:layout_marginRight="15dp" />
</LinearLayout>