在 Android 5.0 以下的设备上,升级到 Support Library 23.2.0 后,ActionBar 上的溢出菜单图标和返回按钮变成了黑色。在升级之前,它们是白色(正确的颜色)。
正确的颜色是: 升级后,Android 5.0 以下的设备会出现错误的颜色,如溢出菜单图标所示: style.xml(Android 5.0 以下版本/棒棒糖之前的版本)中的主题:
正确的颜色是: 升级后,Android 5.0 以下的设备会出现错误的颜色,如溢出菜单图标所示: style.xml(Android 5.0 以下版本/棒棒糖之前的版本)中的主题:
<resources xmlns:android="http://schemas.android.com/apk/res/android" >
<!--Used on the application level by the manifest.-->
<style name="app_theme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/app_primary_colour</item>
<item name="colorPrimaryDark">@color/app_primary_dark_colour</item>
<item name="colorAccent">@color/app_accent_colour</item>
<item name="android:windowBackground">@color/app_background</item>
<item name="searchViewStyle">@style/custom_search_view_style</item>
</style>
<!--Used by activities.-->
<style name="app_theme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<!--TODO: What are these?-->
<style name="app_theme.app_bar_overlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="app_theme.popup_overlay" parent="ThemeOverlay.AppCompat.Light" /> ... ... </resources>
我已查看这里和这里,但未解决问题。 更新:还请参阅此Google错误报告:https://code.google.com/p/android/issues/detail?id=201918