title: Placing a textview on top of imageview in android
body: <ul>
  <li>I have a <code>listview</code>, that has a single <code>imageview</code> which is
  scrollable vertically</li>
  <li>I am trying to place a <code>textview</code> on top of <code>Imageview</code></li>
  <li>Both the views must be visible</li>
  </ul>
  
  <hr>
  
  <ol>
  <li>Is it possible ?</li>
  <li>If yes, How to do it programmatically ?</li>
  <li>What changes should i need to make ?</li>
  </ol>
  
  <hr>
  
  <p>list_view_item_for_images.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;ImageView
          android:id="@+id/flag"
          android:layout_width="fill_parent"
          android:layout_height="250dp"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:scaleType="fitXY"
          android:src="@drawable/ic_launcher" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>It gives a output like below</p>
  
  <p><img src="https://i.stack.imgur.com/dRAl1.png" alt="enter image description here"></p>
  
  <p>How to do something like below</p>
  
  <p><img src="https://i.stack.imgur.com/LixBA.png" alt="enter image description here"></p>
  
  <p>note :: Dish 1 &amp; 2 are textviews</p>