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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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