First of all, this question asks a very similar question. However, my question has a subtle difference.
What I'd like to know is whether it is possible to programmatically change the
attribute of a theme to an arbitrary
So for example, we have:
<style name="AppTheme" parent="android:Theme.Material.Light">
At runtime, the user decides he wants to use
as a primary color. Ofcourse there's no way I can create themes for all possible colors.
I don't mind if I have to do hacky stuff, like relying on Android's private internals, as long as it works using the public SDK.
My goal is to eventually have the
all widgets like a
to use this primary color.