Sanyasirao Mopada Sanyasirao Mopada - 8 months ago 77
Android Question

changing app material theme colorPrimaryDark programatically in android?

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?

Answer Source

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