Hi :wave: , I was wondering if anyone has experien...
# android
m
Hi 👋 , I was wondering if anyone has experience with Server-driven theming in Android apps? I want to be able to fetch the Primary/Secondary colours from the API and apply to the application.. The usecase is for theming a white-label app 🤔
stackoverflow 1
not much resources on Stackover flow tbh, thats why I tried here
Nice article here https://adambennett.dev/2020/11/server-driven-theming-in-jetpack-compose/ but I am not using Jetpack compose
👍 1
e
Have you looked at https://github.com/airbnb/paris by any chance? It allows you to change styles for components at runtime. I have a few apps where I do something similar. There's a default style, which is the foundation app and, upon signing it, it fetches the style preferences for the user and then applies it as they navigate through the app. For instances where they don't have a preference, it simply falls back to the default. While my implementation is bespoke, I went through the Paris sample code and it seems like it does the same thing (just neater!) and at first glance, it looks like it'll do what you want.
👍 1
m
Thanks .. it sounds like exactly what I want to do. Really appreciate it.
👍 1
e
Awesome! Let me know how it goes - I am always keen to hear how other folks find tools I use.