working on 4.0.3 and 4.1 but Error on 2.1,2.2 and 2.3 - Sherlock Action Bar

前端 未结 2 1673
独厮守ぢ
独厮守ぢ 2021-01-18 20:55

I was following one SIMPLE tutorial of Sherlock Action Bar. I followed each and every step. The problem is I\'m getting error on versions 2.1 to 2.3 and working fine on 4.0

相关标签:
2条回答
  • 2021-01-18 21:05

    The problem is I'm getting error on versions 2.1 to 2.3 and working fine on 4.0 to 4.1.

    => As you have mentioned this is working fine in 4.0 and 4.1 but not in 2.x version, i am sure you forgot include compatible ActionBarSherlock theme in your style.xml:

    If you haven't included styles.xml with below values, then do it:

    <style name="AppTheme" parent="Theme.Sherlock.Light.DarkActionBar"/>
    

    As you have mentioned above about values-v11 and values-v14 for styles.xml, you can create styles.xml in both the folder with below values:

    <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"/>
    
    0 讨论(0)
  • 2021-01-18 21:10

    I am a little confused when I look at your screen shot. First, your project should be using Android 4.0.3, not 2.3 in the Android libraries. You already cover 2.3 with the minSDKVersion line in your manifest. Second I can't quite tell, but I assume that in the properties for your project, you made your main project be dependent upon the ActionBarSherlock library?

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