title: Android:TextView is not set on top of ImageView?
body: <p>I'm designing my application. In which I want to set <code>TextView</code> on top of an <code>ImageView</code> without any correction of any Layout. <code>TextView</code> is on top of <code>ImageView</code> like other two Buttons. Is it possible to set <code>TextView</code> on <code>ImageView</code>. In my code <code>TextView</code> is hidden behind <code>ImageView</code>. Here is my code. </p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical" &gt;
  
   &lt;RelativeLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_marginRight="0dp"
      android:background="@drawable/call_bg" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/rl_photo"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true" &gt;
  
          &lt;ImageView
              android:id="@+id/imageView1"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:src="@drawable/ic_launcher" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
          android:id="@+id/relativeLayout1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@id/rl_photo"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_marginTop="20dp" &gt;
  
          &lt;TextView
              android:id="@+id/name"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:text="Medium Text"                
              android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_above="@id/relativeLayout1"
          android:layout_marginTop="350dp"
          android:orientation="horizontal"
          android:weightSum="2" &gt;
  
          &lt;RelativeLayout
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1" &gt;
  
              &lt;Button
                  android:id="@+id/receive1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentRight="true"
                  android:layout_marginRight="10dp"
                  android:background="@drawable/acceptxml" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;RelativeLayout
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1" &gt;
  
              &lt;Button
                  android:id="@+id/reject"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="5dp"
                  android:background="@drawable/rejectxml" /&gt;
          &lt;/RelativeLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <blockquote>
    <p>My Actual Code is like this. this is perfectly working in application. but when i change this like your code. so its contain error.</p>
  </blockquote>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/rl_main"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;RelativeLayout
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginRight="60dp"
      android:background="@drawable/call_bg" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/rl_photo"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true" &gt;
  
          &lt;ImageView
              android:id="@+id/imageView1"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:src="@drawable/ic_launcher" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
          android:id="@+id/relativeLayout1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_below="@id/rl_photo" &gt;
  
          &lt;TextView
              android:id="@+id/name"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:text="Medium Text"
              android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/relativeLayout1"
          android:layout_marginTop="5dp"
          android:orientation="horizontal"
          android:weightSum="2" &gt;
  
          &lt;RelativeLayout
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1" &gt;
  
              &lt;Button
                  android:id="@+id/receive1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentRight="true"
                  android:layout_marginRight="10dp"
                  android:background="@drawable/acceptxml" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;RelativeLayout
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1" &gt;
  
              &lt;Button
                  android:id="@+id/reject"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="5dp"
                  android:background="@drawable/rejectxml" /&gt;
          &lt;/RelativeLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>