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:
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?
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.
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.
Right Click on Drawable folder -> New -> Drawable Resource File , will create a XML file inside the Drawable folder.
SetColorFilter(ColorFilter) Specify an optional color filter for the drawable. SetColorFilter(Color, PorterDuff+Mode)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With