解决办法:
1、第一种办法:
在你xml使用<RadioButton>时不光要添加
android:background="@null"
android:button="@drawable/radio_check_pic"
还要添加一个:
app:buttonCompat="@null"
就好了;
头部添加:
xmlns:app="http://schemas.android.com/apk/res-auto"
2、自定义radiobutton
可以看到两个参数的构造,默认传了个样式,我们自定义的时候将这个参数传0即可.
3、在AppTheme里添加样式,全局设置buttonCompat为空