【发布时间】:2015-01-06 07:11:44
【问题描述】:
扩展 material.light 主题后,设置颜色如下:
<resources>
<!-- inherit from the material theme -->
<style name="MiTemaMaterial" parent="android:Theme.Material.Light">
<!-- Main theme colors -->
<!-- your app branding color for the app bar -->
<item name="android:colorPrimary">#4DB6AC</item>
<!-- darker variant for the status bar and contextual app bars -->
<item name="android:colorPrimaryDark">#009688</item>
<!-- theme UI controls like checkboxes and text fields -->
<item name="android:colorAccent">#FFAB40</item>
</style> </resources>
我得到了一个类似材质设计的导航栏,但按钮等视图不采用配色方案并显示为默认值。我想知道这是否是标准行为,因为在http://www.google.com/design/spec/components/buttons.html 这样的设计指南中,按钮似乎使用强调色。
我必须手动设置样式吗?
【问题讨论】: