<style name="checkboxBg"parent="Widget.AppCompat.CompoundButton.CheckBox"><item name="buttonCompat">@null</item>
<item name="android:background">@null</item>
<item name="android:button">@drawable/bg</item>
</style>
<CheckBox
style="@style/checkboxBg"/>