I`m using new android support library 21.0.2 and when i call ActionMode for text selection i got this.

It seems than title textview background is transparent.
Redefining titleTextStyle of ActionMode has no effect.
Any suggestions? Thanks.
theme.xml
<item name="actionModeStyle">@style/ActionMode</item>
<item name="android:actionModeStyle">@style/ActionMode</item>
<style name="ActionMode" parent="@style/Widget.AppCompat.ActionMode">
<item name="titleTextStyle">@style/ActionModeTitleTextStyle</item>
</style>
<style name="ActionModeTitleTextStyle" parent="@style/TextAppearance.AppCompat.Widget.ActionMode.Title">
<item name="android:background">#ff0000</item>
<item name="android:colorBackground">#ff0000</item>
</style>
I ran into this issue using the the
AppBarLayoutwith theToolbarandTabLayout. I had set the background color on theToolbarand that caused theActionModetitle to display the background color of theToolbarand not theactionModeBackgroundcolor that was set on theTheme.I moved the background color to the
AppBarLayoutinstead and this fixed the issue with the title having the background color of theToolbar.Hope this helps someone!