I want to change the action overflow button icon in my Toolbar
(or ActionBar
, not matter).
So I go this way:
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:actionOverflowButtonStyle">@style/AppTheme.OverflowButtonStyle</item>
</style>
<style name="AppTheme.OverflowButtonStyle" parent="Widget.AppCompat.Light.ActionButton.Overflow">
<item name="android:src">@drawable/ic_custom</item>
</style>
or this way:
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="toolbarStyle">@style/AppTheme.ToolbarStyle</item>
</style>
<style name="AppTheme.ToolbarStyle" parent="Base.Widget.AppCompat.Toolbar">
<item name="actionOverflowButtonStyle">@style/AppTheme.OverflowButtonStyle</item>
</style>
<style name="AppTheme.OverflowButtonStyle" parent="Widget.AppCompat.Light.ActionButton.Overflow">
<item name="android:src">@drawable/ic_custom</item>
</style>
But both ways don't work. What's wrong there?
And the second question is can I change one resourse from library to another resource from library (I just want to change black action overflow button to white, which presents in the library too).
<item name="actionOverflowButtonStyle">@style/OverFlow</item>
AND<item name="android:actionOverflowButtonStyle">@style/OverFlow</item>
. Also is it possible to use resource from library? I cannot find two variants of the overflow button. But library contains black and white, isn't it? – Interstratify