android 去掉控件自身带的边框或者按钮的方法

拿RadioButton举例

   <RadioButton
                            android:id="@+id/newregister_rb_nan"
                            android:layout_width="wrap_content"
                            android:layout_height="match_parent"
                            android:checked="true"
                            android:background="@null"                //代表把原来自有的边框去掉
                            android:button="@drawable/zhuce_anniu"  //代表换成自己要用的图片按钮
                            android:layout_marginRight="4dp" />

猜你喜欢

转载自blog.csdn.net/as425017946/article/details/50569945