Applying Colors at Runtime - part 1
Note: I've started the series from the latest things I encountered and required more time. On the next parts I'll try to cover the basics for ui customization.
From time to time you'll need to adjust your ui colors on runtime. It can be all the ui, or just several views. In here I collected some of the things that needs to be configure in less common way.
Window
Setting the window background instead each view background reduce the overdrawing. after setting the window background you can skip setting the activity root color
StatusBar
Status bar color can be set only on lollipop and later clients.
Tool Bar
Setting tool bar color is very common. if you can't set the color using style xml, you'll probably set it during run time.