Label alignments issue

Shay

Well-Known Member
Licensed User
Longtime User
Hi

strange problem
if my device location is Israel, and I set the label test align to right it will show it align to the left, while none-israel devides will show to the right

if I align it to the left (default) I will show it in israel devies to the right, while none-israeli (hebrew) devices to the left

so for now I am showing the label as center, but I must fix the above

thanks
 

Shay

Well-Known Member
Licensed User
Longtime User
from what I saw, some hebrew devices are align to left, and some align to right, is there a way to id which is right and which is left ? so i can fix it in my code?
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
I guess you are right, but is there something I can do?
since I am forced to use "center" and this is bad for me...
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
Is your app specifically for Hebrew devices? if so, maybe just have a msgbox2 on very first load that asks the user what their devices alignment is.

Sent from my DROIDX
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
I wish to have Horizontal right AND vertical center

I tried this, but still it is only doing the hotizontal right

b.Gravity = Bit.Or(Gravity.Right, Gravity.CENTER_VERTICAL)
 
Upvote 0

manios

Active Member
Licensed User
Longtime User
b.Gravity = Bit.Or(Gravity.Right, Gravity.CENTER_VERTICAL)

Try

OBJECT.Gravity = Bit.Or(Gravity.Right, Gravity.CENTER_VERTICAL)

That should work!
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
b is my object (some label) from Erel example
didn't you wrote the same what I did?
 
Upvote 0
Top