Skip to content

Navigation Menu

Sign up

About

Custom shape ImageView using PorterDuffXfermode with paint shapes and SVGs

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

History

15 Commits

Folders and files

Repository files navigation

CustomShapeImageView Demo (Play Store Demo)

Custom shape ImageView using PorterDuffXfermode with paint shapes and SVGs

Usage

 <com.meg7.widget.CustomShapeImageView
 android:layout_width="64dp"
 android:layout_height="64dp"
 android:src="@drawable/sample"
 app:shape="circle"
 android:scaleType="centerCrop" />
 <com.meg7.widget.CircleImageView
 android:layout_width="64dp"
 android:layout_height="64dp"
 android:src="@drawable/sample"
 android:scaleType="centerCrop" />
 <com.meg7.widget.RectangleImageView
 android:layout_width="64dp"
 android:layout_height="64dp"
 android:src="@drawable/sample"
 android:scaleType="centerCrop" />
 <com.meg7.widget.SvgImageView
 android:layout_width="64dp"
 android:layout_height="64dp"
 android:src="@drawable/sample"
 app:svg_raw_resource="@raw/shape_star"
 android:scaleType="centerCrop" />

Screenshots

main Libraries used

Developed by

Bitdeli Badge

About

Custom shape ImageView using PorterDuffXfermode with paint shapes and SVGs

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /