Reputation: 1709
I would like to use the RadioButton
's property - android:button="@drawable/abc"
- programmatically.
How do I write this in Java?
Upvotes: 0
Views: 187
Reputation: 1428
Try this
radioButton.setButtonDrawable(new StateListDrawable());
and perhaps also have a look at this question:
programmatically set custom drawables for radio buttons
Upvotes: 1