I'm developing Android project which is target 4.2.2 but minimal support version is 2.3. The project heavily uses ActionBarSherlock library. In the manifest file I write:
android:theme="@style/Theme.Sherlock" >
And when I tested my project on Android 4.2.2 device and on Android 4.0 everything works perfectly but when I tried to run the app on Android 2.3 it crashed with the next log:
During debugging i noticed that some buttons on my custom ActionBar (custom_bar) are null. I use this code fro creating custom ActionBar:
ActionBar theBar = getSupportActionBar();
theBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
theBar.setCustomView(R.layout.custom_bar);
So how to fix this problem?Does some ActionBarSherlock library feautures compatible with 2.3?