Sanyasirao Mopada Sanyasirao Mopada - 10 days ago 7
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

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

Comments