Hey Android Community,
Can we update Android Theme at runtime. My requirement is to update the primary colour throughout the app . The colour hex would be fetched from server.
My solutions :
1. Create wrapper classes around Widgets ( TextViews, RadioButtons etc) and pass Shared Pref to it. Then update the primary colours.
2. Use any 3rd Party dependency, if any . Was looking at Airbnb/Paris for the same.
stackoverflow 1
google 1
z
Zac Sweers
11/18/2020, 7:35 AM
This is not kotlin related
r
Rooparsh
11/18/2020, 7:53 AM
Right, this is not kotlin related. But I was hoping if I could hear directly from experts about their opinion.
s
stantronic
11/18/2020, 5:18 PM
I dont think this is possible with traditional Android development, but I believe it is within Jetpack Compose.