title: Layered Image View
body: <p><a href="https://i.stack.imgur.com/u8cNw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/u8cNw.png" alt="View That I Wanted"></a></p>
  
  <p>I want To Create Image Thumb Like Above..
  For This I Created XML Below </p>
  
  <p><strong>activity_main.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center"&gt;
  
  
        &lt;View
              android:id="@+id/view1"
              android:layout_width="150dp"
              android:layout_height="150dp"
              android:layout_marginTop="10dp"    
              android:background="@drawable/images1"&gt;
          &lt;/View&gt;
          &lt;View
              android:id="@+id/view2"
              android:layout_width="150dp"
              android:layout_height="150dp"
              android:layout_marginTop="20dp"
              android:layout_marginLeft="10dp"
              android:background="@drawable/images1"&gt;
          &lt;/View&gt;
          &lt;View
              android:id="@+id/view3"
              android:layout_width="150dp"
              android:layout_height="150dp"
              android:layout_marginTop="30dp"
              android:layout_marginLeft="20dp"
              android:background="@drawable/images1"&gt;
          &lt;/View&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>But This Which I Created Is Manually Added In XML. And May Be It Will React Different in Different device Type. 
  Is There Any Other Way To Create This Type Of View..</p>
  
  <p>Any Help Accepted.</p>
  
  <p>Thank You.</p>