D
D
Danil Ochagov2018-10-13 15:49:57
Android
Danil Ochagov, 2018-10-13 15:49:57

How to change menu color in Toolbar?

There is a toolbar

<android.support.v7.widget.Toolbar
        android:id="@+id/my_tool_bar"
        app:titleTextColor="#fff"
        android:background="@color/colorPrimary"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize" />

And how
5bc1e9b9dbce7441834061.png
do I change the color of this menu icon?
Theme is everywhere
<style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorPrimary">@color/colorPrimary</item>
    </style>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Kovalev, 2018-10-13
@danilochagov

<style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar">
    ...
    <item name="actionOverflowButtonStyle">@style/MyOverflowButtonStyle</item>
</style>

<style name="MyOverflowButtonStyle" parent="Widget.AppCompat.ActionButton.Overflow">
    <item name="android:tint">Твой цвет</item>
</style>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question