Change ActionBar menu icon

8

I want to change the menu icon of ActionBar , those 3 points that have the default option "Settings". I've already tried Style by creating a custom theme and there putting the new icon but it did not work.

<style name="CustomActivityTheme" parent="AppTheme">
    <item name="android:homeAsUpIndicator">@drawable/botaohome</item>
    <item name="android:actionButtonStyle">@drawable/actionbuttonwhite</item>
</style>

homeAsUpIndicator works perfectly, but Action Button Style does not. Any tips?

    
asked by anonymous 07.05.2015 / 19:13

1 answer

1

You can use a menu inside an Item, then in the item you define an icon

<item
        android:icon="@drawable/ic_opcoes"
        app:showAsAction="always"
        android:title="@string/comecar">
        <menu>

             //aqui coloca os itens que você quer dentro no menu

        </menu>
    </item>
    
12.05.2015 / 16:47