I\'m not sure if this is a bug or somehow I\'m not using the new Toolbar class properly.
I\'m able to successfully theme the ActionBar directly using one of the avai
Well, I was finally able to properly style the action mode after digging through some styles, themes, attrs, and code from the support library.
Before I provide the solution to my question I have to mention that there seems to be a bug with the support library. It seems to loose the set theme for the action mode when you hide the window action bar. I have reported a bug to see if they fix this or provide more details.
So the solution was to essentially style the background, text, and close icon my self. Doing this required using my own ActionMode style and changing an attribute pointer to the close icon.
themes.xml
<style name="Theme.Main.Home">
<item name="windowActionModeOverlay">true</item>
<item name="actionModeStyle">@style/Widget.ActionMode</item>
<item name="actionModeCloseDrawable">@drawable/ic_arrow_back_white_24dp</item>
</style>
styles.xml
<style name="Widget.ActionMode" parent="@style/Widget.AppCompat.ActionMode">
<item name="android:background">@drawable/action_mode_background</item>
<item name="titleTextStyle">@style/TitleTextStyle</item>
</style>
actionModeBackground
doesn't work for setting the background of the action mode. You must change the background via the standard android:background
on the ActionMode style.actionModeCloseDrawable
attr.