Custom shape ImageView using PorterDuffXfermode with paint shapes and SVGs
.
https://github.com/MostafaGazar/CustomShapeImageView
.
Usage:
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
app:shape="circle"
android:scaleType="centerCrop" />
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
android:scaleType="centerCrop" />
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
android:scaleType="centerCrop" />
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
app:svg_raw_resource="@raw/shape_star"
android:scaleType="centerCrop" />
.
Libraries used:
https://github.com/latemic/svg-android
This version of [Library Demo] ShapedImageView Android App comes with one universal variant which will work on all the Android devices.
If you are looking to download other versions of [Library Demo] ShapedImageView Android App, We have 1 version in our database. Please select one of them below to download.