Ari*_*Roy 5 android android-layout android-theme android-5.0-lollipop
我想要的是
我有一个预定义的颜色作为主色和强调色。但并非所有用户都喜欢我喜欢的颜色。所以,我想创建一个具有 10-15 种预定义颜色的颜色选择器,用户可以选择将其作为他/她的主要颜色和强调色。
我已经读过styles.xml 文件是不可变的,那么我可以通过什么方式来实现这一点。我见过很多像 Talon for Twitter Plus 这样的应用程序,还有更多这样的应用程序。
我怎样才能做到这一点?一个有效的解决方案将不胜感激。
编辑 - 用户可以在浅色主题和深色主题之间进行选择。And there will be some preset colors which when selected will change the primary color and accent color of the theme, so that any widget in the app using these two colors get changed automatically.
| 归档时间: |
|
| 查看次数: |
2354 次 |
| 最近记录: |