Android toolbar Style设置其中控件颜色
遇到点问题,写点东西记录一下
toolbar里面的控件颜色的控制
把箭头的颜色控制成如图的样子
在style里面定义这个
<style name="MyToolbarStyle">
<item name="android:minHeight">?actionBarSize</item>
<item name="android:background">?colorPrimary</item>
<item name="popupTheme">@style/ThemeOverlay.AppCompat.Light</item>
<item name="theme">@style/MyToolbarTheme</item>
</style>
<style name="MyToolbarTheme">
<!-- Used to tint the back arrow, menu and spinner arrow -->
<item name="colorControlNormal">#FFF</item>
</style>
在toolbar里面引用
<android.support.v7.widget.Toolbar
android:id="@+id/publish_discuss_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/MyToolbarStyle" />