项目迁移到Androidx,在安卓5.0以下手机运行时,RadioButton设置button为null不起作用
项目迁移到androidx,用低版本的手机(android4.4)测试,发现xml中的用"android:button=null"不起作用了,所有的RadioButton和Checkbox自带的按钮都显示出来了。
查看源码,发现第二个构造参数多了个默认属性
com.android.internal.R.attr.radioButtonStyle
如:RadioButton和AppCom...
原创
2019-11-13 14:11:04 ·
962 阅读 ·
0 评论