Android Studio Vector Art For Image
They scale without losing definition and you need only one asset file which fits all screen densities.
Android studio vector art for image. The major advantage of using a vector drawable is image scalability. Vector asset studio adds a vector graphic to the project as an xml file that describes the image. Android 4 4 api level 20 and lower doesn t support vector drawables. Creating simple vector drawables in android studio using vector drawables is often much better than bitmap images for two reasons.
Contrast this with a bitmap where images are built from a series of dots on a grid. Maintaining one xml file can be easier than updating multiple raster graphics at various resolutions. Sometimes i find it useful to create vector drawables by hand in android studio using svg paths. A vector image is one built with paths.
The path data connects series of points. This results in smaller apk files and less developer maintenance.