In my design of UI of Android applications, I need some drawables for icons.
Where are the existing drawables located within the Android SDK?
Join Stack Overflow to learn, share knowledge, and build your career.
In my design of UI of Android applications, I need some drawables for icons.
Where are the existing drawables located within the Android SDK?
In android.R.drawable
, read more here : http://docs.since2006.com/android/2.1-drawables.php
Simple resource usage :
android:icon="@android:drawable/ic_menu_save"
Simple Java usage :
myMenuItem.setIcon(android.R.drawable.ic_menu_save);
Icons are provided by Google themselves for free at, http://developer.android.com/design/downloads/index.html
Material icons provided by google can be found here: https://design.google.com/icons/
You can download them as PNG
or SVG
in light and dark theme.
You can find android drawables icons from the example path below...
C:\Users\User\AppData\Local\Android\sdk\platforms\android-25\data\res\drawable-xhdpi
Add icon: https://developer.android.com/studio/write/vector-asset-studio.html
set icon: setIcon(R.drawable.ic_incon_name)
Right click on Drawable folder
click on new
click on image asset
Then you can select an icon type
A huge collection of useful icons is easily accessible like this:
https://material.io/resources/icons/?style=baseline
This Material design resource from Google might also be helpful.