With the AppCompat Toolbar, I want to be able to change the color of the overflow menu icon on ActionMode change.
For example, the overflow icon will be white in normal
None of the answers here helped me change the overflow icon color of ActionMode independently from the overflow icon color of the normal Toolbar (without resorting to case-by-case styling in code). After some trial and error, I thought that we might override theme
attribute of ActionMode independently from Toolbar, and it worked!
In the base theme, we specify the style of action mode like usual:
In our custom ActionModeStyle
we do whatever styling we want, and also specify a theme
attribute:
textColorSecondary
will also change the back button color, but we can easily override that one using actionModeCloseButtonStyle
.