Android Tools:Vector Asset Studio

原文链接:http://developer.android.com/tools/help/vector-asset-studio.html

概要:

(1)Compared to raster images, vector drawables can reduce the size of your app and be resized without loss of image quality. They help you to more easily support different Android devices with varying screen sizes and resolutions because you can display one vector drawable on all of them.

(2)one XML file that describes the image. Maintaining one XML file can be easier than updating multiple raster graphics at various resolutions.

(3)material icons

https://design.google.com/icons/

(4)The initial loading of a vector graphic can cost more CPU cycles than the corresponding raster image. Afterward, memory use and performance are similar between the two. We recommend that you limit a vector image to a maximum of 200 x 200 dp; otherwise, it can take too long to draw.

(5)Only Android 5.0 (API level 21) and higher supports dynamic attributes

(6)When your minimum API level includes Android 4.4 (API level 20) or lower, you have corresponding vector and raster images in your project. In this case, you have two options for delivering your APK files:

Create one APK that includes both the vector images and the corresponding raster representations. This solution is the simplest to implement.

Create separate APKs for different API levels. When you don’t include the corresponding raster images in the APK for Android 5.0 (API level 21) and higher, the APK can be much smaller in size. For more information, seeMultiple APK Support.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,489评论 2 45
  • Correctness AdapterViewChildren Summary: AdapterViews can...
    MarcusMa阅读 8,900评论 0 6
  • 在迎风的山顶 倔强地开着一朵花 她孤傲地盛开着 独自享受着阳光 也独自承受着风雨 偶尔经过的路人 只看到她迷人的香...
    长河冬阳阅读 514评论 5 5
  • 【生命之域】我理解的是自己特别热爱并可能贯穿人生很长时间的事情。或许我找到了,从小梦想环游世界,和现在的工作领域很...
    K王之姐阅读 287评论 0 0
  • 那些外卖、家政、美业等只想通过线上引流(一维)、线下服务(二维)、门店加盟(三维的轻模式,重不了多少,至多只能算是...
    张书乐阅读 1,031评论 0 49