Demonstração da biblioteca Android
Forma de forma personalizada usando o porterduffxfermode com formas de tinta e svgs
.
https://github.com/Murafagazar/customshapeImageView
.
Uso:
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" />
.
Bibliotecas usadas:
https://github.com/latemic/svg-android
Leia mais