android - Hardware menu popup issue with Appcompat -
i implemented in application (not so) new appcompat theme darkactionbar. works fine, except popup hardware menu button (or long press recent button), rendered white text.
popup result:
toolbar: http://i.stack.imgur.com/huwpm.png
hard menu: http://i.stack.imgur.com/o5fml.png
i solved old issue popup action mode, adding actionbarpopuptheme attribute in app theme. after this, hardware menu popup getting background actionbarpopuptheme (ok, want! before black), not textcolor.
the code:
<style name="apptheme" parent="theme.appcompat.light.noactionbar"> <item name="colorprimary">@color/primary</item> <item name="colorprimarydark">@color/primary_dark</item> <item name="windowactionmodeoverlay">true</item> <item name="actionbartheme">@style/themeoverlay.appcompat.dark.actionbar</item> <item name="actionbarpopuptheme">@style/themeoverlay.appcompat.light</item> </style> <style name="toolbar" parent="matchwidth"> <item name="theme">@style/themeoverlay.appcompat.dark.actionbar</item> <item name="popuptheme">@style/themeoverlay.appcompat.light</item> <item name="android:layout_height">?attr/actionbarsize</item> <item name="android:background">?attr/colorprimary</item> </style>
what right way theme this?
Comments
Post a Comment