Challenge: Using ActionBarSherlock

Now that you have added an ActionBarSherlock project reference, you should be ready to integrate it into CriminalIntent. ABS works a lot like the support library – it provides alternative versions of core Android classes like Activity, Fragment, and ActionBar. Most (not all) of the ABS class names are prefixed with Sherlock-, though, which makes them a bit easier to distinguish than the support library classes.

That gives you some idea of what you need to do. The fragment and activity classes are all prefixed with Sherlock-, but the menu-related classes are not.

Basic ABS integration in CriminalIntent

Here are the steps for the most basic ABS integration:

  • Change SingleFragmentActivity and CrimePagerActivity ...

Get Android Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.