Take RadioButton as an example
<RadioButton
android:id="@+id/newregister_rb_nan"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:checked="true"
android:background="@null" //Represents the original Remove the border
android:button="@drawable/zhuce_anniu" //represents changing to the picture button you want to use
android:layout_marginRight="4dp" />