ilan Expert Licensed User Longtime User Nov 26, 2013 #1 hi i have a little problem that is really annoying i use in my app the left right gravity fron the designer and all labels are set from the designer and in my phone and others i see it how i want it to be but today i install my app on a galaxy advance android 2.3.6 and its all labels gravity is reverse labels with left gravity and right and right are left in my phone its ok and other phone that i tried what is the cause of that?? i put 4 pics to show you what i mean 2 of the galaxy advance and 2 of my phone galaxy 2+ in the galaxy advance it looks like this: (not what i want) in my phone it looks like this:
hi i have a little problem that is really annoying i use in my app the left right gravity fron the designer and all labels are set from the designer and in my phone and others i see it how i want it to be but today i install my app on a galaxy advance android 2.3.6 and its all labels gravity is reverse labels with left gravity and right and right are left in my phone its ok and other phone that i tried what is the cause of that?? i put 4 pics to show you what i mean 2 of the galaxy advance and 2 of my phone galaxy 2+ in the galaxy advance it looks like this: (not what i want) in my phone it looks like this:
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2013 #2 Proper support for RTL languages was added in Android 4.1 (and Android 4.2): http://android-developers.blogspot.co.il/2013/03/native-rtl-support-in-android-42.html There are custom ROMs that handle right to left languages. However the behavior is not consistent. Seems like the ROM on this device flips the gravity. I guess that it tries to "mirror" the layout. Upvote 0
Proper support for RTL languages was added in Android 4.1 (and Android 4.2): http://android-developers.blogspot.co.il/2013/03/native-rtl-support-in-android-42.html There are custom ROMs that handle right to left languages. However the behavior is not consistent. Seems like the ROM on this device flips the gravity. I guess that it tries to "mirror" the layout.
ilan Expert Licensed User Longtime User Nov 26, 2013 #3 is it possible to check if the label is set to left or right? i can put an option that the user can change gravity? for all labels in activity, from right to left? Upvote 0
is it possible to check if the label is set to left or right? i can put an option that the user can change gravity? for all labels in activity, from right to left?
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2013 #4 is it possible to check if the label is set to left or right? Click to expand... You can check the Gravity property. Though it will probably report the value you set it. You can set the gravity of all labels. See Activity.GetAllViewsRecursive. Upvote 0
is it possible to check if the label is set to left or right? Click to expand... You can check the Gravity property. Though it will probably report the value you set it. You can set the gravity of all labels. See Activity.GetAllViewsRecursive.
ilan Expert Licensed User Longtime User Nov 27, 2013 #5 thank you erel for your help if i have labels in panels to i need to do "panel1.GetAllViewsRecursive" for all my panels? or "Activity.GetAllViewsRecursive" will also do the job for labels in panels? Upvote 0
thank you erel for your help if i have labels in panels to i need to do "panel1.GetAllViewsRecursive" for all my panels? or "Activity.GetAllViewsRecursive" will also do the job for labels in panels?
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2013 #6 Activity.GetAllViewsRecursive will iterate over all the views in the activity (including the panels views). Upvote 0
Activity.GetAllViewsRecursive will iterate over all the views in the activity (including the panels views).