Layout Layers? Z-Axis?

Try using FrameLayout.

FrameLayout always places things one on top of the other and always in reference to the upper lefthand corner, so you’ll need to use separate layouts inside of FrameLayout to place your objects where you want the on the screen.

Remember that android will put things into your layout in the order that they are list, so place objects at the bottom of the layout that you want near the top of your display.

Here’s a quick example (don’t forget to add proper xml header data to the top node):

<FrameLayout>
  <RelativeLayout>
    <!--  Place the objects you want on the bottom here -->
  </RelativeLayout>


  <RelativeLayout>
    <!--  Place the objects you want on the top here -->
  </RelativeLayout>
</FrameLayout>

Leave a Comment