title: How to place buttons over Image in android?
body: <p>I want to create a custom view like this.<img src="https://i.stack.imgur.com/recIg.png" alt="enter image description here"></p>
  
  <p>I tried the  following </p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      android:orientation="vertical" &gt;
  
      &lt;ImageView
          android:id="@+id/customView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:src="@drawable/sample_image" /&gt;
  
      &lt;Button
          android:id="@+id/button1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="right|top"
          android:text="Button" /&gt;
  
      &lt;Button
          android:id="@+id/button2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="right|bottom"
          android:text="Button" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>How can i create a view like this? How can i place buttons over imageview like this?</p>
  
  <p>Thanks in Advance</p>