Reputation: 27
I would like to change color of my overflow button (3 dots) on toolbar but i have a problem with this... I check few topics and i found a solutions... but it work only on Android 5.0 and higher... Of course I can change it using colorPrimary but it's not a solutions for me.. I would like to change only color of overflow button. If extra information needed please comment.
This is declaration of my toolbar:
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/blue_background"
android:elevation="4dp">
This is my styles:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:actionBarStyle">@style/MyTheme.ActionBarStyle</item>
<!-- your app branding color for the app bar -->
<item name="colorPrimary">@color/blue_background</item>
<!-- darker variant for the status bar and contextual app bars -->
<!--<item name="android:colorPrimaryDark">@color/primary_dark</item>-->
<!-- theme UI controls like checkboxes and text fields -->
<item name="colorAccent">@color/search_button</item>
<item name="android:textColorPrimary">@color/search_button</item>
<item name="android:textColorSecondary">@color/search_button</item>
<item name="android:logo">@drawable/dbc_logo_white</item>
<item name="android:actionOverflowButtonStyle">@style/menuOverflow</item>
</style>
<style name="menuOverflow" parent="Widget.AppCompat.ActionButton.Overflow">
<item name="android:src">@drawable/ic_action_overflow</item>
</style>
Upvotes: 1
Views: 3033
Reputation: 6631
Okay, I think I have the solution:
<!-- Overflow Button Style. -->
<item name="actionOverflowButtonStyle">@style/menuOverflow</item>
As you can see, remove android:
before actionOverFlowButtonStyle
in your style.
A lot of options with android:
is not working pre-lollipop, you can try to remove some of them.
Upvotes: 6