49

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
  • 170,088
  • 45
  • 397
  • 571
user1914692
  • 3,033
  • 5
  • 36
  • 61

9 Answers9

48

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,659
  • 9
  • 48
  • 84
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,857
  • 1
  • 25
  • 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
  • 101
  • 2
  • 4
5

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
  • 416
  • 6
  • 8
4

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

set icon: setIcon(R.drawable.ic_incon_name)

Petter Friberg
  • 21,252
  • 9
  • 60
  • 109
Mher Arsh
  • 588
  • 4
  • 21
3

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

This Material design resource from Google might also be helpful.

Filippos Zofakis
  • 561
  • 6
  • 12
1
  1. Right click on Drawable folder

  2. click on new

  3. click on image asset

Then you can select an icon type

Anga
  • 2,450
  • 2
  • 24
  • 30