[Library Demo] ShapedImageView -
Demo der Android-Bibliothek
Benutzerdefinierte Form von ImageView mit PorterDuffXfermode mit Farbformen und SVGs
.
https://github.com/MostafaGazar/CustomShapeImageView
.
Verwendung:
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/sample"
app:shape="Kreis"
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" />
.
Verwendete Bibliotheken:
https://github.com/latemic/svg-android