I am working on a project which is having customization functionality. Where client can choose there Application's color and that I need to reflect in my App. I am done with API:
{
"code": 200,
"msg": "Ok",
"status": "success",
"color": {
"toolbar": "#FFFFFF",
"button_color": "#FFFFFF",
"button_text": "#FFFFFF",
"status_bar": "#FFFFFF",
"section_title_text": "#FFFFFF",
"banner_divider": "#FFFFFF",
"nav_divider": "#FFFFFF",
"app_background": "#FFFFFF"
}
}
I did JSON parsing too. But the thing is how to set these color? Like how to set "toolbar" color to ColorPrimary? how to set "status_bar" color to "colorPrimaryDark" and so on?