Question:
I want to change the ActionBar
menu icon, those 3 dots that have "Settings" as the default option. I've tried using Style by creating a custom theme and putting the new icon there but it didn't work.
<style name="CustomActivityTheme" parent="AppTheme">
<item name="android:homeAsUpIndicator">@drawable/botaohome</item>
<item name="android:actionButtonStyle">@drawable/actionbuttonwhite</item>
</style>
The homeAsUpIndicator
works perfectly, but the Action Button Style did not. Any tips?
Answer:
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>