android - ActionMode color changed in Support Lib v22 -
recently upgraded support lib v22.1 v21.0.3, actionmode used work on v21.0.3. still works great on lollipop, doesn't work on pre-l devices.
after update, here's how looks on android lollipop

and here's how looks on kitkat

below theme use
<style name="apptheme.base" parent="theme.appcompat.light.noactionbar"> <item name="colorprimary">@color/primary</item> <item name="colorprimarydark">@color/primary_dark</item> <item name="coloraccent">@color/accent</item> <item name="android:windownotitle">true</item> <item name="windowactionbar">false</item> <item name="windowactionmodeoverlay">true</item> </style> and toolbar in activity xml
<android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorprimary" android:theme="@style/themeoverlay.appcompat.dark.actionbar" app:popuptheme="@style/themeoverlay.appcompat.light"/> p.s. same problem on v22.0.0
a possible workaround manually set action mode background in style. adding following lines fixed similar issue in project:
<item name="android:actionmodebackground">@color/dark_blue</item> <!-- 5.0 --> <item name="actionmodebackground">@color/dark_blue</item> <!-- 4.4 , before -->
Comments
Post a Comment