ActionBarSherlock - Style contains key with bad entry

后端 未结 1 1703
别跟我提以往
别跟我提以往 2020-12-15 05:00

I\'m trying to use ActionBarSherlock in one specific activity which I\'ve declared in the Manifest like this:



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

    This is because you are using theme attributes that were not present on the platform on which you are running your application. Despite the giant red error log that it adds, it's more of a warning as it does not affect the other attributes. The newer attributes are never read on the older platforms.

    The linked question from me was my attempt to not have to require ABSv4 use mirrored attributes.

    If you really want to get rid of the error you can create two sets of your styles. One in values/ for the compatibility action bar and one in values-v14/ that use the prefixed attributes for the native action bar.

    And please, please, please, please do not use maxSdkVersion. Use targetSdkVersion instead.

    0 讨论(0)
提交回复
热议问题