N noeleon Active Member Licensed User Longtime User Dec 1, 2019 #1 Adding SetApplicationAttribute(android:supportsRtl, "true") in manifest gives an interesting effect after changing language to Arabic or Hebrew. Tabstrip and menus are right aligned, seekbar direction is reversed, and so on. But in order to flip the view positions this page says we have to replace the view attributes like Left with Start, Right with End. Is this possible in B4A?
Adding SetApplicationAttribute(android:supportsRtl, "true") in manifest gives an interesting effect after changing language to Arabic or Hebrew. Tabstrip and menus are right aligned, seekbar direction is reversed, and so on. But in order to flip the view positions this page says we have to replace the view attributes like Left with Start, Right with End. Is this possible in B4A?
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2019 #2 You can flip the layout or at least most of the layout with this code: Code: Copy For Each x As B4XView In Activity.GetAllViewsRecursive If x.Parent.IsInitialized Then x.Left = x.Parent.Width - x.Left - x.Width End If Next Upvote 0
You can flip the layout or at least most of the layout with this code: Code: Copy For Each x As B4XView In Activity.GetAllViewsRecursive If x.Parent.IsInitialized Then x.Left = x.Parent.Width - x.Left - x.Width End If Next
N noeleon Active Member Licensed User Longtime User Dec 1, 2019 #3 Thanks Erel. I'm using that code and added reversing the views gravity in the loop. Upvote 0