I am using image for checkbox. This is the xml i am uisng,
<CheckBox
android:id="@+id/remember"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/tableLayout1"
android:button="@drawable/checkbox_selector"
android:layout_marginLeft="52dp"
android:text="@string/remember"
android:textColor="#000000" />
I am getting the gap between the image and text ( see in the below image), is it default; is it possible to change if yes let me know what property i have to add.
checkbox_selector.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true"
android:drawable="@drawable/checked" />
<item android:state_checked="false"
android:drawable="@drawable/un_checked" />
</selector>