Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialPamela Alvarez
5,681 PointsI was wondering if the App icon images have to be saved as png.? Could we use svg instead, since it is scaleable.
This is in regards of Android Studio.
3 Answers
Khaled Reguieg
2,515 PointsHello Stacey,
You are absolutely right. This is of course a very good idea, because .svg is indeed scalable. And since Android Studio 2 and Marshmallow they are well supported. So if you made some icons as .svg you can add them by right clicking on the "res" folder an selecting "New -> Vector Asset". The Vector Asset Studio opens and you just have to select your .svg file and follow the steps. After adding it, it will appear as .xml file in your drawables and if the device which your app gets installed on is under Android 20 Android Studio will generate .png files in every resolution in the out folder. ;)
If you want to know more, just checkout the Android Docs on this topic: http://developer.android.com/tools/help/vector-asset-studio.html
Cheers, Khaled. :)
P.S.: Sorry for my bad English, I'm German. ^^
Ruan Lopes de Souza
4,854 PointsYes, you can use SVG for your icons and Android has a tool to help you with that. I suggest you to read the link below for detailed information
http://developer.android.com/intl/in/tools/help/vector-asset-studio.html#about
Pamela Alvarez
5,681 PointsThank you so much, I will definitely read through the article in the link!
Ruan Lopes de Souza
4,854 PointsStacey Alvarez take a look on this link as well http://android-developers.blogspot.ca/2016/02/android-support-library-232.html
Pamela Alvarez
5,681 PointsThank you again for the extra information! I've gotten familiar with using the vector asset studio.
Pamela Alvarez
5,681 PointsIt's okay^^ Your English isn't bad at all! It's comprehensible. Thank you so much for your detailed instruction, as well as including a link. It helped me a lot! Thank you.~