I finished the English version of my application and now I am working on the Arabic localization. Arabic is a right-to-left language, so I need to adjust a lot of things in
Try this:
android:layout_gravity="right"
change your code
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="?android:attr/listPreferredItemHeight"
android:layout_width="fill_parent"
android:gravity="right" />
To
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
style="?android:attr/listPreferredItemHeight"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="right" />
You have to use CheckedTextView
, it will solve your all 3 problems.
You will place a layout xml something like this:
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:drawableLeft="?android:attr/listChoiceIndicatorSingle"
android:gravity="right|center_vertical"
android:singleLine="true"
android:layout_width="fill_parent"
android:textSize="20dp"
android:layout_height="?android:attr/listPreferredItemHeight"
android:ellipsize="marquee" />