S silvercover Member Licensed User Longtime User Jun 6, 2012 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Jun 7, 2012 #2 You can change the label gravity value: B4X: lv.SingleLineLayout.Label.Gravity = Gravity.RIGHT You may also need to change the label position. Upvote 0
You can change the label gravity value: B4X: lv.SingleLineLayout.Label.Gravity = Gravity.RIGHT You may also need to change the label position.
S silvercover Member Licensed User Longtime User Jun 7, 2012 #3 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 7.1 KB · Views: 427 Upvote 0
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.
Erel B4X founder Staff member Licensed User Longtime User Jun 7, 2012 #4 Something like: B4X: Dim lbl As Label lbl = lv.SingleLineLayout.Label lbl.Width = lbl.Width - 5dip Upvote 0
E erfan Member Licensed User Longtime User Mar 24, 2013 #5 Erel said: Something like: B4X: Dim lbl As Label lbl = lv.SingleLineLayout.Label lbl.Width = lbl.Width - 5dip Click to expand... 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: Mar 24, 2013 Upvote 0
Erel said: Something like: B4X: Dim lbl As Label lbl = lv.SingleLineLayout.Label lbl.Width = lbl.Width - 5dip Click to expand... 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