1

Can I change the colorPrimaryDark color of material theme programmatically?

I want to apply different colorPrimaryDark color based on the navigation Item choosed, is there any alternative other than setting different styles?

Sanyasirao Mopada
  • 943
  • 12
  • 31
  • Possible duplicate of [How to \_really\_ programmatically change primary and accent color in Android Lollipop?](http://stackoverflow.com/questions/25815769/how-to-really-programmatically-change-primary-and-accent-color-in-android-loll) – Viral Patel Jan 22 '16 at 17:07
  • this is not duplicate, I want to change primaryColorDark color so want to change statusbar color programatically, though there is a way to change status bar color, I want it transparent and make colorPrimaryDark as a statusbar color – Sanyasirao Mopada Jan 25 '16 at 15:10

1 Answers1

1

There is no way such as per current available methods of android sdk. So Instead of changing colorPrimaryDark attribute programatically, I am applying different themes for different activities

Sanyasirao Mopada
  • 943
  • 12
  • 31