Search code examples
androidactionbarsherlockpreferenceactivity

ActionBar (using ActionbarSherlock) inside a PreferenceActivity on Gingerbread


I have an Android app where I've set the min SDK version to be 9 (Gingerbread). I have a preference activity where I would like to show an actionbar which works just fine on ICS+ devices but does not show up on devices running GB.

Upon further investigation, I found that ABS is not supported when used with PreferenceActivity.

Is there any workaround for this? I simply need to show an actionbar (with some options items) on devices running Gingerbread.


Solution

  • Use SherlockPreferenceActivity.