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" />