title: How to show text over image?
body: <p>I have to show two line text as attached image .</p>
  
  <p><a href="https://i.stack.imgur.com/JvwnD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JvwnD.jpg" alt="enter image description here"></a></p>
  
  <p>In this image I have to show text "Hotel Seawoods, Mahalaxmi
  20% Cashback" over image .</p>
  
  <p>Please tell me how to do this ?</p>
  
  <p>activity_home.xml</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:app="http://schemas.android.com/tools"
      android:orientation="vertical"&gt;
      &lt;include
          layout="@layout/toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"/&gt;
      &lt;FrameLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
  
      &lt;ImageView
          android:id="@+id/test_image"
          android:layout_width="match_parent"
          android:layout_height="240dp"
          android:scaleType="fitXY"
          android:src="@drawable/test" /&gt;
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textColor="#000"
          android:textSize="40dp"
          android:text="Neeraj" /&gt;
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="Shah"
          android:layout_gravity="bottom"
          android:gravity="right"
          android:textColor="#"
          android:textSize="50dp" /&gt;
  
  
  &lt;/FrameLayout&gt;
      &lt;android.support.v7.widget.CardView
          android:id="@+id/card_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:layout_margin="10dp"
          card_view:cardBackgroundColor="@color/cardview_1_background"
          android:elevation="3dp"
          card_view:cardCornerRadius="4dp"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"
              android:padding="10dp"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center_vertical"
                  android:orientation="horizontal"&gt;
  
                  &lt;ImageView
                      android:layout_width="30dp"
                      android:layout_height="30dp"
                      android:src="@drawable/ic_eye"
                      android:paddingLeft="10dp"/&gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="10dp"
                      android:text="Explore"
                      android:textStyle="bold" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="10dp"
                  android:orientation="horizontal"
                  android:weightSum="1"&gt;
  
                  &lt;LinearLayout
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight=".25"
                      android:gravity="center"
                      android:orientation="vertical"&gt;
  
                      &lt;ImageView
                          android:layout_width="64dp"
                          android:layout_height="64dp"
                          android:src="@drawable/location"
                          /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_marginTop="10dp"
                          android:text="Location"
                          android:textStyle="bold" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight=".25"
                      android:gravity="center"
                      android:orientation="vertical"&gt;
  
                      &lt;ImageView
                          android:layout_width="64dp"
                          android:layout_height="64dp"
                          android:src="@drawable/deals"
                           /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_marginTop="10dp"
                          android:text="Deals"
                          android:textStyle="bold" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight=".25"
                      android:gravity="center"
                      android:orientation="vertical"&gt;
  
                      &lt;ImageView
                          android:layout_width="64dp"
                          android:layout_height="64dp"
                          android:src="@drawable/cuisine"
                           /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_marginTop="10dp"
                          android:text="Cusine"
                          android:textStyle="bold" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="0dp"
                      android:layout_height="wrap_content"
                      android:layout_weight=".25"
                      android:gravity="center"
                      android:orientation="vertical"&gt;
  
                      &lt;ImageView
                          android:layout_width="64dp"
                          android:layout_height="64dp"
                          android:src="@drawable/drive"
                           /&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_marginTop="10dp"
                          android:text="Drive-in"
                          android:textStyle="bold" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.v7.widget.CardView&gt;
  
  
      &lt;android.support.v7.widget.CardView
          android:id="@+id/card_view1"
          android:layout_width="match_parent"
          android:layout_height="30dp"
          android:layout_gravity="center"
          android:layout_margin="10dp"
          card_view:cardBackgroundColor="@color/cardview_1_background"
          android:elevation="3dp"
          card_view:cardCornerRadius="4dp"&gt;
  
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:gravity="center_vertical"
              android:orientation="horizontal"&gt;
  
              &lt;ImageView
                  android:layout_width="25dp"
                  android:layout_height="25dp"
                  android:src="@drawable/recent"
                  android:paddingLeft="10dp"/&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="10dp"
                  android:text="Recents"
                  android:textStyle="bold" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Note : In this xml <code>"test_image"</code>(test) is image, where i have to show text.</p>
  
  <p>i am getting now after changes while i was getting earlier cardview 
  <a href="https://i.stack.imgur.com/wyzcG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wyzcG.png" alt="enter image description here"></a></p>