Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How change theme color programmatically: style, attributes android?

I used google but didn't find an accurate solution, for changing themes programmatically.
I want to change everything programmatically: styles, colors, attributes etc., without using style.xml, theme.xml or any other xml file.
I have searched, but styles are defined in an xml file like that Using Themes in Android Applications

like image 936
Engr Waseem Arain Avatar asked Jun 07 '26 17:06

Engr Waseem Arain


1 Answers

I know this is an old question, but if someone's still looking for a solution, checkout the GreenMatter library for the Material theme, or for the Holo theme holoaccent.

like image 142
Jeff Lockhart Avatar answered Jun 09 '26 08:06

Jeff Lockhart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!