Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are the Android icon drawables within the SDK?

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

Where are the existing drawables located within the Android SDK?

like image 971
user1914692 Avatar asked Aug 28 '13 17:08

user1914692


People also ask

Where is the drawable in Android?

jpg , or . gif file. Android creates a Drawable resource for any of these files when you save them in the res/drawable/ directory. The filename is used as the resource ID.

Where is the drawable folder in Android Studio?

In Android Studio inside the res folder, one can find the drawable folder, layout folder, mipmap folder, values folder, etc. Among them, the drawable folder contains the different types of images used for the development of the application.


1 Answers

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); 
like image 130
TN888 Avatar answered Sep 28 '22 10:09

TN888