How to add icon to Android Studio

0

I've been researching the internet about the implementation of icons for android applications by android studio, but I confess I was a bit confused.

I made my icon using Adobe Illustrator on a 192x192 pixel project, but instead of exporting several drawable measurements for it, I'm exporting only the 1x and thus adding it to the Android studio image asset to create the images of other resolutions .

Is the way I chose to do it correct? Is there any damage to the final image preview in all resolutions?

    
asked by anonymous 04.03.2018 / 20:07

1 answer

0

That's correct, but icons are usually made by vector asset, as they are mostly vectors. One only needs to be careful about some properties of the exported icon that can not work on older APIs. For example, there is a color gradient function in xml that only works on APIs greater than 24. Anyway, the way to export is correct. Make the icon in the software you want, export to .png or .svg and use the image asset OR vector asset (which is geared towards vectorized icons).

    
05.03.2018 / 18:09