I have 4 buttons in my linear layout and i need to bring to front first button.
Normal order is
Button 1 | Button 2 | Button 3 | Button 4
But when I call button1.bringToFront()
function , button1
is going to end like
Button 2 | Button 3 | Button 4 | Button 1
How can I solve this problem. Relative layout doesn't causes this problem but I have to use LinearLayout
because buttons will order vertically and I'm deleting a button in some conditions.
Thanks