Control Z Order of Views in Android’s LinearLayout
Unfortunately, LinearLayout in Android does not provide easy access to a z-index property for views.
So, if you want to control the z order, you need to order your views properly. The z-index of views goes up as views are added.
<ImageView
android:id="@+id/view_server_os_logo"
android:layout_width="700dip"
android:layout_height="700dip"
android:adjustViewBounds="true"
android:layout_gravity="left"
android:src="@drawable/ubuntu_large"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="22dip"
android:layout_marginTop="-700dip"
android:text="Server Name"
/>
In this case, I move the TextView up 700 pixels and it will sit on top of the ImageView because it comes after the ImageView in the layout XML.