是否有Android Action风格的生成器作为材料主题?
我正在寻找类似这个http://jgilfelt.github.com/android-actionbarstylegenerator/,但支持新的材料风格的安卓(而不是霍洛风格)。
(谢谢你提前:)
发布于 2015-01-24 23:00:40
材质主题使用着色和简单的形状来生成UI。您不需要任何生成器,因为没有9补丁或任何其他图形。只需在你的主题中设置你的颜色(主色调、重音等)你已经准备好走了。
发布于 2015-01-25 11:33:33
如工具所述:
废弃的:考虑使用工具栏或它的支持库等效。
使用AppCompat库,只需在styles.xml中设置这些值
<style name="Theme.MyTheme" parent="Theme.AppCompat.Light">
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">@color/my_color</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">@color/my_darker_color</item>
<!-- colorAccent is used as the default value for colorControlActivated, which is used to tint widgets -->
<item name="colorAccent">@color/accent</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight, and colorSwitchThumbNormal. -->
</style>https://stackoverflow.com/questions/28125122
复制相似问题