I have made a custom checkbox where checkbox text would be in left side and checked mark in the right side. My custom checkbox works perfectly but facing on problem. That is, my checkbox text is not aligning exactly to left. There is some space in the left. My code is.
<CheckBox
android:id="@+id/chk_1"
android:text="DHKXXX"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:button="@null"
android:drawableRight="@xml/custom_checkbox"
/>