About [Library Demo] ShapedImageView
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
Download and install
[Library Demo] ShapedImageView version 1.0 on your
Android device!
Downloaded 500+ times, content rating: Everyone
Android package:
com.meg7.samples, download [Library Demo] ShapedImageView.apk
by C####:
Boring