Demostración de la biblioteca de Android
ImageView de forma personalizada con PorterDuffXFermode con formas de pintura y SVGS
.
https://github.com/mostafagazar/customshapeiMageView
.
Uso:
Android: Layout_width = "64dp"
Android: Layout_height = "64dp"
Android: src = "@dibujo/muestra"
APP: Shape = "Circle"
Android: Scaletype = "CenterCrop" />
Android: Layout_width = "64dp"
Android: Layout_height = "64dp"
Android: src = "@dibujo/muestra"
Android: Scaletype = "CenterCrop" />
Android: Layout_width = "64dp"
Android: Layout_height = "64dp"
Android: src = "@dibujo/muestra"
Android: Scaletype = "CenterCrop" />
Android: Layout_width = "64dp"
Android: Layout_height = "64dp"
Android: src = "@dibujo/muestra"
Aplicación: SVG_RAW_RESOURCE = "@raw/shape_star"
Android: Scaletype = "CenterCrop" />
.
Bibliotecas utilizadas:
https://github.com/latemic/svg-android
Leer más