Add icon mode to Android Studio

I've been doing research on the internet on the implementation of icons for android apps by android studio, however, I confess that I was somewhat confused.

I made my icon using Adobe Illustrator in a project of 192x192 pixels, but instead of exporting several measures drawable by the same I am exporting only the 1x and thus adding this by the image asset of Android studio to create the images of other resolutions.

The way what I chose to do is correct? Is there any damage to the final image view at all resolutions?

Author: hugocsl, 2018-03-04

1 answers

Is correct, but icons are usually made by Vector asset, as they are mostly vectors. One only needs to be careful with some properties of the exported icon that cannot work in older APIs. For example, there is a color gradient function in xml that only works on APIs greater than 24. Anyway, the way of exporting is correct. Makes the icon in the software you want, exports to .PNG or.svg and uses the image asset or vector asset (which is precisely for the vector icons).

 0
Author: Felipe Campos, 2018-03-05 17:09:04