I added Sherlock library to my project and I added required classes and codes to my project. When I test it, action bar appears only in android 4 emulator. When I try it in 2.1 emulator, Actionbar does not appear. Can you give some suggestions how can I fixed it?
I set my target 15 for both sherlock library and my project.
I added Sherlock library to my project and I added required classes and codes
Share
You need to have done the following:
Set the min and target SDK levels appropriately
Changed your
Activity‘s toSherlockActivity‘s, andFragment‘s toSherlockFragment‘sSet your theme to either one of your own that has a parent of, or is the direct theme
Theme.Sherlockor one of its child themes e.g.Theme.Sherlock.LightFinally; the ABS styles mirror those of the native action bar therefore you need to define each style element twice. For example:
Edit: I did a video tutorial towards getting started too: http://www.youtube.com/watch?v=4GJ6yY1lNNY