Toolbar指示按钮颜色修改方案

《Toolbar指示按钮颜色修改方案》

定义自己style,主要是覆盖colorControlNormal属性值,默认白色:

<!--处理ToolBar指示颜色-->
<style name="ToolBarColorStyle" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
    <item name="colorControlNormal">@color/common_text_yellow</item>
</style>

xml中Toolbar控件使用:

<android.support.v7.widget.Toolbar
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:background="#00ff0000"
    app:theme="@style/ToolBarColorStyle" />
    原文作者:Hans在路上
    原文地址: https://www.jianshu.com/p/eac7f86e06ce
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞