i don't want to show default images of checkkBox.. I want to use drawable images on checked and unchecked state of checkBox. here is my selector file...
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:state_checked="true">
<bitmap android:src="@drawable/with_check"/>
</item>
<item
android:state_checked="false">
<bitmap android:src="@drawable/without_check"/>
</item>
<item android:drawable="@drawable/with_check" />
<padding
android:top="10dp"
android:bottom="10dp" >
</padding>
</selector>
here is my checkBox in xml looks like
<CheckBox
android:id="@+id/xyz"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:background="@drawable/selector"/>
it's overlaping with default images of checkBox...