title: How to give hexagon shape to ImageView
body: <p>How to give hexagon shape to <code>ImageView</code> . Is it possible to do in same way ? If so then how. If this is not possible through this then how this could be achieved ?</p>
  
  <pre><code>&lt;shape xmlns:android="http//schemas.android.com/apk/res/android"
         android:shape="hexagon"&gt;
    &lt;solid android:color="#ffffffff" /&gt;
    &lt;size android:width="60dp"
          android:height="40dp" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <h2>Screenshot</h2>
  
  <p><img src="https://i.stack.imgur.com/VoUIk.png" alt="enter image description here"></p>
  
  <p>Here I can't do masking image because I can not detect which portion of bitmap I should crop to get hexagon shape bitmap. So I am looking for the answer to give hexagon shape to <code>ImageView</code></p>