问题描述:

I'm using AppCompat, my app has dynamic color themes. I want to be able to change the primaryColor and accentColor attributes so that UI elements will match the theme colors (e.g. progress bars, check boxes, etc.).

I can manually set colors for a lot of views, but that gets complicated for elements like checkboxes and progress bars where I do not want to generate my own drawable. Obviously using static XML doesn't work for this either.

Is changing theme attributes for an Activity possible from code?

相关阅读:
Top