Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where could I find android system drawable resources? [android API-7] [duplicate]

Possible Duplicate:
Standard Android menu icons, for example refresh

I want to use some android drawables because users already familiar with them.

I've found this nice site where I can see the names of resources I need. But I couldn't find some resources inside android.R.drawable.

For example I want to use checkboxes drawables in my application:

enter image description hereenter image description here

From that site I see that names of those drawables are btn_check_off and btn_check_on though I don't see such names in my android.R.drawable.

Is it even possible to use any system drawable?

like image 446
Vitalii Korsakov Avatar asked Nov 18 '12 18:11

Vitalii Korsakov


People also ask

Where is drawable folder in android?

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.

What is android drawable resources?

A drawable resource is a general concept for a graphic that can be drawn to the screen and which you can retrieve with APIs such as getDrawable(int) or apply to another XML resource with attributes such as android:drawable and android:icon . There are several different types of drawables: Bitmap File.

How do I create an XML file in a drawable folder?

Right Click on Drawable folder -> New -> Drawable Resource File , will create a XML file inside the Drawable folder.

What is SetColorFilter?

SetColorFilter(ColorFilter) Specify an optional color filter for the drawable. SetColorFilter(Color, PorterDuff+Mode)


1 Answers

Most of assets can be found there:

<SDK>\platforms\android-<VERSION>\data\res\

so, assuming you got all it fetched, in your case:

<SDK>\platforms\android-7\data\res\

however not all elements are full available via direct reference. Just copy/modify what you need and add to your project

like image 125
Marcin Orlowski Avatar answered Sep 22 '22 18:09

Marcin Orlowski