I use listItemsSingleChoice,so I want Change RadioButton's color ,Can I do it?,if can,How I do ? thanks
Try md_color_widget and md_color_widget_unchecked attrs.
@afollestad in core's documentation > theming > widgets color section is missing.
I can not find this attrs md_color_widget and md_color_widget_unchecked , Can you tell me how the code is used it? very thanks :sob: @enricocid
@hegaojian
You can add these attributes to the app's theme 😉
Like this:
<item name="md_color_widget">@color/yourcolor</item>
@enricocid
change theme i know, but I hope to achieve with the code ,like in activity or fragment change ,I do not know how to change color
do you know how to change color in activity or fragment? brother
@hegaojian
I don't think it is possible programmatically, I can't find any reference in the code/docs. Looking at the code it seems the color is retrieved exclusively from theme attrs cited above.
So an option could be to use a custom adapters dialog with a custom adapter like this one or this.
This way you can implement your own layout and logic to control the color of radio/checkbox and its checked status.
@enricocid
ok , thank you very much,thank you for the answer ,I think you are a very patient person,helped me so long,ha ha ha :relaxed:
My english is bad ,Communicate with you by translator ,Please do not take offense :grin:
No problem bro 🙂😁
Can I work on this issue?Is it open yet?
yes,is it open