通过Java代码
Bitmap a=null;
radioButton.setButtonDrawable(new BitmapDrawable(a));
注意不要使用radioButton.setButtonDrawable(null)。这种方法存在兼容性问题,在某些机型上并不能真正隐藏。
通过XML
android:button="@null"
Bitmap a=null;
radioButton.setButtonDrawable(new BitmapDrawable(a));
注意不要使用radioButton.setButtonDrawable(null)。这种方法存在兼容性问题,在某些机型上并不能真正隐藏。
android:button="@null"
本文标题:Android中RadioGroup隐藏圆圈按钮
本文链接:https://www.haomeiwen.com/subject/torehqtx.html
网友评论