Sanyasirao Mopada Sanyasirao Mopada - 7 months ago 70
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?


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