我想以编程方式使用RadioButton
的属性-android:button="@drawable/abc"
。
如何用Java编写?
最佳答案
尝试这个
radioButton.setButtonDrawable(new StateListDrawable());
也许也看看这个问题:
programmatically set custom drawables for radio buttons
我想以编程方式使用RadioButton
的属性-android:button="@drawable/abc"
。
如何用Java编写?
最佳答案
尝试这个
radioButton.setButtonDrawable(new StateListDrawable());