Android uses SVG vector images

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.