ricardoalcocer / actionbarextras

Titanium Android Native Module that exposes ActionBar features not exposed by the Titanium SDK
MIT License
148 stars 60 forks source link

Add an option to set StatusBarColor for Android 5/MaterialDesign #71

Closed janisr closed 9 years ago

janisr commented 9 years ago

Maybe something like in here??

http://stackoverflow.com/questions/27093287/how-to-change-status-bar-color-to-match-app-in-lollipop-android

manumaticx commented 9 years ago

Yep, I've seen this. This should definitely be possible with ABX although I'd always encourage to use Themes for styling these colors. But you're right, it should also be possible to change at runtime.

janisr commented 9 years ago

Implemented in #73

manumaticx commented 9 years ago

Just thought that it would be nice if this method would automatically set the statusbar color according to the actionbar color if you do not pass any color. Does that make sense?

janisr commented 9 years ago

That would be nice. Actually taking a step further it would be nice to merge those methods - when setting ActionBar color it calculates StatusBar color with the offset specified by design guidelines and sets that.

manumaticx commented 9 years ago

I really like this idea. Would be very handy