ActionBarSherlock Fragments

ActionBarSherlock Fragments

5,000 - 10,000 downloads

Add this app to your lists
WARNING: This is a demo app for a library project!

ActionBarSherlock is an extension of the compatibility library designed to facilitate the use of the action bar design pattern across all versions of Android with a single API.

The library will automatically use the native action bar when appropriate or will automatically wrap a custom implementation around your layouts. This allows you to easily develop an application with an action bar for every version of Android from 2.x and up.

This sample is simply the 'API Demos' sample from the Android support library ported to use SherlockFragmentActivity and SherlockFragment. It should provide a good idea of how these two classes are used to replace FragmentActivity and Fragment.

PERMISSIONS: Both the "Read contact" and "Internet" permissions are used for demonstration purposes only. These permissions are present in the official compatibility library sample and thus this sample. The app is open source and does not make any attempt to steal any private information.

Please DO NOT report bugs in reviews. Create an issue on the GitHub project or send them to my email directly. More information available via the website.

Tags: fragment example, actionbar button, sherlock actionbar menu, fragments, fragment sample, sample codes for fragments in, actionbarsherlock tabs fragments, fragment framework, fragments example, fragment animation.

Recently changed in this version

Altered technique used for menu event dispatching through the fragment manager for greater control.

Do not dispatch menu creation event if the activity has been destroyed.

Correct potential NullPointerException when the hardware menu key was pressed in an activity that is forcing the overflow menu.

Do not set a listener on the native action bar tab wrapper unless a compatibility listener has been set.

Ensure the compatibility animation framework is always available on views.


Screenshots ActionBarSherlock Fragments
View bigger - ActionBarSherlock Fragments for Android screenshot
View bigger - ActionBarSherlock Fragments for Android screenshot
Comments and ratings for ActionBarSherlock Fragments
  • (77 stars)

    by Abdelrahman El-Tamawy on 05/08/2013

    The library is very useful and strong..but please put more screenshots. The app contain many examples that should be included into the screenshots. Thank you

  • (77 stars)

    by Abd El-Rahman El-Tamawy on 05/08/2013

    The library is very useful and strong..but please put more screenshots. The app contain many examples that should be included into the screenshots. Thank you

  • (77 stars)

    by Nadav Gruber on 22/03/2013

    Great job!

  • (77 stars)

    by Jason Cheladyn on 12/03/2013

    Thanks a lot

  • (77 stars)

    by A Google User on 26/10/2012

    Thank you for Sherlock ActionBar

  • (77 stars)

    by Paul on 24/03/2012

    Great stuff Jake, keep it up! :)

  • (77 stars)

    by Fernanda on 23/03/2012

    Perfect!