title: android unable to round the corners of imageview?
body: <p>I am making an application in which I want to round my ImageView by its corners. But it's not getting rounded from its corner, I have used the following code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
   &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:padding="8dp"
      android:shape="rectangle" &gt;
  
  &lt;solid android:color="#6BC1F8" /&gt;
  
  &lt;corners
      android:bottomLeftRadius="5dp"
      android:bottomRightRadius="5dp"
      android:topLeftRadius="5dp"
      android:topRightRadius="5dp" /&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>for rounding the corners of image..,but I am getting like this image :
  <img src="https://i.stack.imgur.com/6hBV2.png" alt="enter image description here"></p>
  
  <p>and I want to do like below:</p>
  
  <p><img src="https://i.stack.imgur.com/kgZbo.png" alt="enter image description here"></p>
  
  <p>I am not sure where I am doing wrong, please guide me :) </p>