Android Question Left to right Widget marquee...

Serway

Member
Licensed User
Longtime User
Hi all,

Is anyone know how to make a 'left to right' widget marquee ?
In my Xml Layout :

<TextView
android:id="@+id/widgetservice_labelscroll"
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_alignParentRight="true"
android:layout_above="@+id/widgetservice_image"
android:singleLine="true"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:scrollHorizontally="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit ="marquee_forever"
android:textDirection="anyRtl"

android:focusable="true"
android:focusableInTouchMode="true"
android:text=""
android:textColor="#FFFFFF"
android:textSize="12sp"
android:duplicateParentState="true">
<requestFocus android:focusable="true" android:focusableInTouchMode="true" android:duplicateParentState="true" />
</TextView>

When i try with hebrew language, marquee is always on 'Right to Left' and never in other side !!

Any solutions ?
Don't forget it is on a real widget...

Many thanks for any help.

Thierry
 

Serway

Member
Licensed User
Longtime User
Thanks Erel for your reply.

I already made widget XML layout with these attributes and read-only...
...but... all is ok for occidental (left to right) language but when i send hebrew string to the widget (widget.SetText("LabelScroll", "...האפליקציה") ... marquee stay on 'Right to Left' and not in (Left to Right) ... hebrew reading...
I search over Internet and no real solution found.

Any solutions ?

Thanks,

Thierry
(Sorry for my english ... i'm french..)
 
Upvote 0
Top