可以把图片设置成圆形,矩形,无变形,菱形,五角星形以及其他形状
用法
build引入
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
事例
<com.github.siyamed.shapeimageview.mask.PorterCircularImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_launcher_round" />