[Library Demo] ShapedImageView -
Démo de la bibliothèque Android
ImageView de forme personnalisée à l'aide de PorterDuffxFerMode avec des formes de peinture et des SVG
.
https://github.com/ostafagazar/customshapeimageView
.
Usage:
Android: Layout_Width = "64DP"
Android: Layout_Height = "64DP"
Android: src = "@ drawable / échantillon"
App: Shape = "Circle"
Android: scaletype = "CenterCrop" />
Android: Layout_Width = "64DP"
Android: Layout_Height = "64DP"
Android: src = "@ drawable / échantillon"
Android: scaletype = "CenterCrop" />
Android: Layout_Width = "64DP"
Android: Layout_Height = "64DP"
Android: src = "@ drawable / échantillon"
Android: scaletype = "CenterCrop" />
Android: Layout_Width = "64DP"
Android: Layout_Height = "64DP"
Android: src = "@ drawable / échantillon"
App: svg_raw_resource = "@ brut / shape_star"
Android: scaletype = "CenterCrop" />
.
Bibliothèques utilisées:
https://github.com/latemic/svg-android