Right to Left Views

silvercover

Member
Licensed User
Longtime User
Hi,

How can we make views (ListView) contents to be shown right to left. I need this for right to left ordered languages such as Arabic.

Thanks.
 

silvercover

Member
Licensed User
Longtime User
After changing gravity, right aligned labels overlapped or cut off by right edge of ListView and there is no enough indention. what should I do to avoid that?

Thanks.
 

Attachments

  • lv_grav.png
    lv_grav.png
    7.1 KB · Views: 425
Upvote 0

erfan

Member
Licensed User
Longtime User
Something like:
B4X:
Dim lbl As Label
lbl = lv.SingleLineLayout.Label
lbl.Width = lbl.Width - 5dip

i used this code but it disabled the gravity! after this code my text is left to right! although i used

B4X:
 lbl.Gravity=Gravity.RIGHT

so far i added one space before each line
 
Last edited:
Upvote 0
Top