You need to move the text from the CheckBox to the left.
How to do it?
For example, like this:
<Checkbox ... android:button="@null" android:drawableRight="?android:attr/listChoiceIndicatorMultiple" /> You can replace with such LinearLayout :
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="text"/> <CheckBox android:id="@+id/chb" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> For API 17+, everything is easier. Just add the attribute to the CheckBox :
android:layoutDirection="rtl" Source: https://ru.stackoverflow.com/questions/852495/
All Articles