I have many views in my xml, and now I wanna change one view's z order in code in order to bring it to other views' front but not all the other views' front.
Is there any way to achieve this?
The only thing that comes to mind is .bringToFront()
but you would have to do it for more than one view in your case.
This can help
layout.bringChildToFront(view);
here
layout = your_linear_layout AND
view = the_view_you_wanna_bring_to_front
hope it will help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With