![]() ![]() You can refer to vector drawables as Drawable in Java code or in XML code when your app runs, the corresponding vector or raster image displays automatically depending on the API level. The vector and raster drawables are packaged together in the APK. If your minimum API level is set at one of these API levels, you have two options when using Vector Asset Studio: generate Portable Network Graphic (PNG) files (the default) or use the Support Library.įor backward-compatibility, Vector Asset Studio generates raster images of the vector drawable. Maintaining one XML file can be easier than updating multiple raster graphics at various resolutions.Īndroid 4.4 (API level 20) and lower doesn't support vector drawables. Vector Asset Studio adds a vector graphic to the project as an XML file that describes the image. For older versions of Android that don't support vector drawables, Vector Asset Studio can, at build time, turn your vector drawables into different bitmap sizes for each screen density. MANGA STUDIO VECTOR OR RASTER APKUsing vector drawables instead of bitmaps reduces the size of your APK because the same file can be resized for different screen densities without loss of image quality. Android Studio includes a tool called Vector Asset Studio that helps you add material icons and import Scalable Vector Graphic (SVG) and Adobe Photoshop Document (PSD) files into your project as vector drawable resources. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |