How to remove the border or button of the control itself in android

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" />

Guess you like

Origin blog.csdn.net/as425017946/article/details/50569945