title: Android Hexagon ImageView
body: <p>how can I achieve the hexagon imageview that is shown below.</p>
  
  <p><a href="https://imgur.com/1PEGuQu" rel="nofollow noreferrer">http://imgur.com/1PEGuQu</a></p>
  
  <p>Note that I tried the solution which is at this question:
  <a href="https://stackoverflow.com/questions/22601400/how-to-give-hexagon-shape-to-imageview">How to give hexagon shape to ImageView</a></p>
  
  <p>And I also tried this solution:
  <a href="https://stackoverflow.com/questions/12614542/maskingcrop-image-in-frame">Masking(crop) image in frame</a></p>
  
  <p>But I don't want to fill a color outside of the hexagon. I want it to be transparent, so the views and images behind can be seen.</p>
  
  <p>By the way I tried, BitmapShader, PorterDuffXFermode etc. but cannot managed to get the result I wanted.</p>
  
  <p>Thanks in advance.</p>