Android Question Change Z-order Programmatically

epiCode

Active Member
Licensed User
Is there a way to change z-order of UI elements via code ?
(not via designer)
 

epiCode

Active Member
Licensed User
B4XView.SendToBack / BringToFront

Note that in Android there is also an elevation property that affects the z-order.
I've been using sendtoback but it requires me to maintain an custom stack every time there is a change in order and keep updating it manually.

I wonder if there is a way to find out an element's z-order like where are they among many layers of elements either in B4A or using Inline Java.
 
Upvote 0
Top