How to access checkmark drawable in Android OS?

后端 未结 1 1428
余生分开走
余生分开走 2021-01-12 03:31

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条回答
  • 2021-01-12 04:12

    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:

    1. btn_check_buttonless_off.png enter image description here
    2. btn_check_buttonless_on.png enter image description here
    0 讨论(0)
提交回复
热议问题