Android actionbar style ignored by later devices, using appcompat v7

前端 未结 1 842
[愿得一人]
[愿得一人] 2020-12-12 05:13

I am using the Action Bar support library (appcompat v7), my app is set to a minimum api of 7, and a target of 21.

I have two styles files, a base one, and one targe

相关标签:
1条回答
  • 2020-12-12 05:46

    According to the official doc, with the new AppCompat-v21, you can remove all of values-v14+ Action Bar styles and use only one theme declaration, in values:

    <style name="Theme.MyTheme" parent="Theme.AppCompat.Light">
        <!-- Set AppCompat’s actionBarStyle -->
        <item name="actionBarStyle">@style/MyActionBarStyle</item>
    </style>
    
    0 讨论(0)
提交回复
热议问题