The easiest way is simply to pay attention to the order in which the Views are added to your XML file. Lower down in the file means higher up in the Z-axis.
Edit:
This is documented here and here on the Android developer site. (Thanks @flightplanner)
More Related Contents:
- Percentage width in a RelativeLayout
- How to lay out Views in RelativeLayout programmatically?
- Differences between ConstraintLayout and RelativeLayout
- Is a RelativeLayout more expensive than a LinearLayout?
- How to programmatically set the layout_align_parent_right attribute of a Button in Relative Layout?
- How to set RelativeLayout layout params in code not in xml?
- Overlapping Views in Android
- java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.Gallery$LayoutParams
- What are the differences between LinearLayout, RelativeLayout, and AbsoluteLayout?
- How to create a RelativeLayout programmatically with two buttons one on top of the other?
- Circular dependencies cannot exist in RelativeLayout, android?
- How to bring view in front of everything?
- Moving from one activity to another Activity in Android
- Can I Set “android:layout_below” at Runtime Programmatically?
- Extending RelativeLayout, and overriding dispatchDraw() to create a zoomable ViewGroup
- How do I programmatically remove an existing rule that was defined in XML?
- How to add a view programmatically to RelativeLayout?
- Google Maps v2 Marker zOrdering – Set to top
- Listview error: “Your content must have a ListView whose id attribute is ‘android.R.id.list'”
- How to get RelativeLayout working with merge and include?
- How to switch from the default ConstraintLayout to RelativeLayout in Android Studio
- Android XML Layout Parameters Do Not Function As Expected
- Synchronise ScrollView scroll positions – android
- How to disable the Clear Data button in Application info of Manage application
- Android Volley – How to isolate requests in another class
- How to disable Instant Run for Android Studio 3.0
- Android: Detect softkeyboard open
- Android Navigation Drawer on top ActionBar
- Tracking progress of multipart file upload using OKHTTP
- How accurate is Android GPS? [closed]