android - ActionMode background not working on lollipop devices -


am trying change background color of contextual action bar. did in following manner

v21/themes.xml & themes.xml

<?xml version="1.0" encoding="utf-8"?> <resources>     <style name="mytheme" parent="theme.appcompat.light.noactionbar">         <item name="windowactionmodeoverlay">true</item>         <item name="actionmodestyle">@style/widget.actionmode</item>         <item name="android:actionmodestyle">@style/widget.actionmode</item>     </style> </resources> 

styles.xml

<style name="widget.actionmode" parent="@style/widget.appcompat.actionmode">         <item name="background">@color/highlight_green</item> </style> 

the background color works fine in pre-lollipop devices. not work in lollipop.

note: tried adding

<item name="android:actionmodebackground">@color/highlight_green</item> <item name="actionmodebackground">@color/highlight_green</item> 

as well. did not work.

had same problem since last library update, , adding "actionmodebackground" item in theme solved it.

are sure adding under mytheme, , not under widget.actionmode ?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -