android - linear layout bringToFront()
LinearLayout
doesn't work with the z-axis, hence, it's name linear
. Try using a RelativeLayout
and then call bringToFront()
to get the desired effect. With a RelativeLayout
you can call layout_alignBollow
to order the views vertically. Or you can nest views and layouts, for instance, within your LinearLayout
nest three RelativeLayout
within those you can place your Buttons
(be careful with this approach as adding too many views can be a bad thing).