我已经为我的应用实施了材质设计,并且我希望用户能够自定义colorPrimary,colorPrimaryDark和colorAccent的颜色。怎么做?如何通过代码动态更改主题
我想要一个设置活动,用户可以选择自己的颜色,并且更改将应用于我的所有活动。谢谢。
<style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
嘿,在那里,有一个人问过类似的问题,我发布了一个答案,也许你会检查它:[如何给用户在不同颜色的皮肤之间切换的可能性 - ](http://stackoverflow.com/questions/38349187/how-to-give-the-user-the-possibility-to-switch-between-different-colors-skin-in/38350441) –