I'm wondering how to change the StatusBar color dependent on the current active Fragment (on 5.0 Lollipop). Currently, I change the ActionBar color dependent on the Fragment I am in, but now I want the StatusBar color to change as well - in order to look nice on Lollipop devices.
I've tried using setStyle to programmatically change the theme depending on the fragment, but it doesn't seem to be changing the status bar color.
Any ideas would be appreciated!