the app gives us to choose the colors of so many components like button color, text color etc.
How can we implement the same in our app??
One way is to save the user color choices first and then set the colors programatically during runtime but I feel this won't be the efficient way of doing it.
And we can't edit style.xml
Can anybody help for any other method?
you must save user theme in a file as xml format and create theme parser class and theme loader class, next your ui objects read colors from theme loader class ( this is my idea you can try another idea 🤔)
Обсуждают сегодня