I have writing some code of marquee in textview.
When I change the language from English to Arabic.
The text's direction will change from right to left(original is left to right in English), but the marquee's direction don't change, it always scroll from right to left.
My code as below
<TextView
android:id="@+id/label"
android:layout_width="@dimen/menu_item_txt_width"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:text="@string/empty"
android:textColor="@drawable/menu_txt_color"
android:textSize="@dimen/menu_item_txt_size"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
/>
Can anyone provide me simple way to fix it?
In the English the text direction is "Move to[ 888888888 ]" ---> left to right In the Arabic the text direction is "[ 888888888 ]نقل الى" right to left
But in the marquee,
In English version, when I not focus the textview, it will show "Move to[ 88", then I focus it will scroll and show "88888 ]" -----> right to left
In Arabic version, when I not focus the textview, it will show "88 ]نقل الى", then I focus it will scroll and show "نقل " -----> right to left