0
我正在開發一個使用max api 21和appcompat-v7:21.0.0庫的應用程序。在遷移到api 23和appcompat之後,themes.xml不會對api 21及更高版本產生影響。Themes.xml不適用於appcompat 23
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AAAActionBarTheme"
parent="@style/Theme.AppCompat.Light">
<item name="android:actionBarStyle">@style/AAAActionBar</item>
<item name="android:popupMenuStyle">@style/AAAPopupMenu</item>
<item name="android:itemTextAppearance">@style/AAAPopupMenuTextAppearance</item>
<item name="android:actionOverflowButtonStyle">@style/AAAPopupMenuButtonOverflow</item>
<!-- Support library compatibility -->
<item name="actionBarStyle">@style/AAAActionBar</item>
<item name="popupMenuStyle">@style/AAAPopupMenu</item>
</style>
<style name="AAAActionBar"
parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
<item name="android:background">@color/action_bar</item>
<item name="android:textColor">@color/white</item>
<!-- Support library compatibility -->
<item name="background">@color/action_bar</item>
</style>
<style name="AAAPopupMenu"
parent="android:Widget.Holo.Light.ListPopupWindow">
<item name="android:popupBackground">@color/action_bar</item>
<!-- Support library compatibility -->
<item name="background">@color/action_bar</item>
</style>
<style name="AAAPopupMenuTextAppearance">
<item name="android:textColor">@color/white</item>
</style>
<style name="AAAPopupMenuButtonOverflow" parent="android:style/Widget.Holo.ActionButton.Overflow">
<item name="android:src">@drawable/ic_action_overflow</item>
</style>
</resources>
有人可以幫我解決這個問題嗎? 謝謝你的幫助。