.xml里面

<CheckBox

        android:id="@+id/checkBox1"

        android:layout_width="29dp"

        android:layout_height="29dp"

        android:layout_alignBaseline="@+id/textView1"

        android:layout_alignBottom="@+id/textView1"

        android:layout_alignParentRight="true"

        style="@style/CustomCheckboxTheme"

        android:layout_marginRight="10dp" />

   

      style 里面

       

 <style name="CustomCheckboxTheme"           parent="@android:style/Widget.CompoundButton.CheckBox">  

     <item name="android:button">@drawable/checbox_style</item>  

     </style>

drawable上:

    

<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android" >

    <item android:drawable="@drawable/check" android:state_checked="true"/>  

    <item android:drawable="@drawable/check_all_pressed" android:state_checked="false"/>  

    <item android:drawable="@drawable/check_all_pressed"/>  

</selector>