47

In my design of UI of Android applications, I need some drawables for icons.

Where are the existing drawables located within the Android SDK?

Brad Larson
  • 168,330
  • 45
  • 388
  • 563
user1914692
  • 2,823
  • 5
  • 33
  • 54

9 Answers9

45

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);
TN888
  • 7,235
  • 9
  • 42
  • 82
32

Icons are provided by Google themselves for free at, http://developer.android.com/design/downloads/index.html

navid
  • 566
  • 6
  • 15
11

i found mine here:

~/android-sdks/platforms/android-23/data/res/drawable...

6

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.

Terel
  • 3,669
  • 1
  • 23
  • 28
5

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

mille
  • 81
  • 1
  • 4
4

Add icon: https://developer.android.com/studio/write/vector-asset-studio.html

set icon: setIcon(R.drawable.ic_incon_name)

Petter Friberg
  • 19,652
  • 9
  • 51
  • 94
Mher Arsh
  • 488
  • 3
  • 17
1
  1. Right click on Drawable folder

  2. click on new

  3. click on image asset

Then you can select an icon type

Anga
  • 1,967
  • 2
  • 15
  • 23
1

A huge collection of useful icons is easily accessible like this:

  1. Right click on Drawable folder
  2. Click on New
  3. Click on Vector Asset
  4. In the dialog, click the button in the third row with a random icon, next to the label "Clip Art:". You can pick from the huge collection, then customize size and color.
JohnT
  • 326
  • 3
  • 7
0

https://material.io/resources/icons/?style=baseline

This Material design resource from Google might also be helpful.

Filippos Zofakis
  • 415
  • 4
  • 11