In a relativelayout images are cascaded on top of another based on your xml file. How do you indicate what image should be at the very top?
Is there a way to do this in code instead of xml?
I am attaching my XML file for reference:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<ImageView
android:id="@+id/img1"
android:src="@drawable/payarrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageView
android:id="@+id/img2"
android:src="@drawable/chargearrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ImageView
android:id="@+id/landingDockLeft"
android:src="@drawable/landingdock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ImageView
android:id="@+id/landingDockRight"
android:src="@drawable/landingdock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>