1. ImageViewを継承したクラスを用意する public class RoundImageView extends ImageView { ... } 2. 角丸の黒い9patch画像もしくはshapeを用意する res/drawable/mask.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <corners android:radius="32dp" /> <solid android:color="#000000" /> </shape> 3. onDraw()で SRC_ATOP を使ってくりぬく public class RoundImageView extends ImageView { Pain
![Android ImageViewの領域を角丸にする方法](https://cdn-ak-scissors.b.st-hatena.com/image/square/3ed66a1ba0d42c1f3a7c7eac717e234608577d23/height=288;version=1;width=512/http%3A%2F%2F4.bp.blogspot.com%2F-3jBArCx_97I%2FUyuYJeDLx8I%2FAAAAAAAAPRk%2FCxP3Ws-i2Tw%2Fw1200-h630-p-k-no-nu%2FScreenshot_2014-03-21-10-34-04.png)