In my application, I want the text to appear above the image view with padding 2 dp. But when I run the program the textview overlays the image. How can I make the image appear 2dp below textview using <merge> </merge>?
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_gravity="center_vertical|center_horizontal">
<ImageView
android:id="@+id/item_image"
android:layout_width="253dp"
android:layout_height="240dp"
android:layout_gravity="center"
android:scaleType="fitXY"
android:src="@drawable/one_louisrossi" />
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/fourty_eight"
android:layout_weight="1.30"
android:gravity="center_horizontal"
android:text="xxxxxx"
android:textColor="@color/white"
android:textSize="@dimen/eighteen"
android:textStyle="bold" />
</merge>