In my design of UI of Android applications, I need some drawables for icons.
Where are the existing drawables located within the Android SDK?
This question is related to
android
android-drawable
i found mine here:
~/android-sdks/platforms/android-23/data/res/drawable...
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.
Add icon: https://developer.android.com/studio/write/vector-asset-studio.html
set icon: setIcon(R.drawable.ic_incon_name)
A huge collection of useful icons is easily accessible like this:
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
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);
Right click on Drawable folder
click on new
click on image asset
Then you can select an icon type
Icons are provided by Google themselves for free at, http://developer.android.com/design/downloads/index.html
https://material.io/resources/icons/?style=baseline
This Material design resource from Google might also be helpful.
Source: Stackoverflow.com