ImageView de formato personalizado usando PorterDuffXfermode e SVGs
Biblioteca https://github.com/MostafaGazar/CustomShapeImageView
Gist https://gist.github.com/MostafaGazar/ee345987fa6c8924d61b
Uso:
<com.meg7.widget.SvgImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
app:svg_raw_resource="@raw/shape_heart"
android:scaleType="centerCrop" />