title: how to make a rounded corners for an image in image view using XML layout in android
body: <p>I have tried many times but i know that i am missing something,could you Guys please explain it..
  Following is what, i have tried</p>
  
  <pre><code>    &lt;ImageView
          android:id="@+id/Dicimage"
          android:layout_width="130px"
          android:layout_height="100px"
          android:src="@drawable/slang"
          android:background="@drawable/corner"
          android:padding="1dp"/&gt;
  </code></pre>
  
  <p>Created Corner XML in resource folder</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"         
      android:shape="rectangle"&gt; 
  &lt;solid android:color="#fff"/&gt;    
  
  &lt;stroke android:width="0dp"
          android:color="#ff000000"/&gt;
  
  &lt;padding android:left="2dp"
           android:top="2dp"
           android:right="2dp"
           android:bottom="2dp"/&gt; 
  
  &lt;corners android:radius="30px"/&gt; 
     &lt;/shape&gt;
  </code></pre>
  
  <p>What i am getting is, the border is only rounded rectangle but the image is still rectangle in shape</p>