Android SVG vectors may contain actions such as:
SVG diagrams also include changing colors, transparency, size, matrix manipulation (panning, rotating, zooming), selector, (icons, backgrounds, buttons), animations, etc.
Settint (int colorres)//Set color
Iv_arrow = Findviewbyid (r.id.iv_arrow); = Vectordrawablecompat.create (getresources (), R.drawable.ic_arrow, Gettheme ()); assert NULL ; // Vectordrawablecompat.settint (Getresources (). GetColor (R.color.color_blue)); // int Color res value ~ 0x ARGB iv_arrow.setimagedrawable (vectordrawablecompat);
Android uses SVG summary
72473591
Android uses vector images (SVG, vectordrawable) in practice
https://www.jianshu.com/p/0555b8c1d26a
Svg-android Open Source Library--Project simple access and use
52826456
Svg-android Open Source Library--Image color manage, tint, and selector extensions
52878466
Svg-android Open Source Library--about the use of animation
53286958
Svg-android Open Source Library--svg Edit Preview tool for generating vector resource files
54234394
Svg-android Open Source Library--svg image compatibility and performance optimization solutions
52454927
Svg_android GitHub:
Https://github.com/MegatronKing/SVG-Android
Svg-sample Address:
Https://github.com/MegatronKing/SVG-Android/tree/master/svg-sample
Android uses SVG vector images