I want to use Android OS drawables instead of providing my own. How to access check mark icon? I'm looking for check mark without rectagnle arround.
Asked
Active
Viewed 2.1k times
1 Answers
16
To access system provided resource, just access R.java file of Android.
for example:
android.R.drawable.checkbox_on_background // To access drawable resource
android.R.color.black // To access color resources
android.R.dimen.colorstrip_height; // To acess dimension resources
Update:
If you are using Android 2.3 Gingerbread then you can access below in-built drawables:
- btn_check_buttonless_off.png
- btn_check_buttonless_on.png

Paresh Mayani
- 127,700
- 71
- 241
- 295
-
3checkbox_on_background have rectangle. I want clear check mark. Witjout rectangle. – Kostadin Feb 16 '12 at 11:47
-
2Good one, thanks. I needed small rectangle checkboxes that fit in the OS version and these were right on. ?android:attr/listChoiceIndicatorMultiple looks too big and awkward on a list – Rafael Nobre Aug 31 '12 at 19:07