Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Version 2.1.0

Compare
Choose a tag to compare
@JakeWharton JakeWharton released this 14 Aug 16:17
· 1410 commits to master since this release

WARNING: The Android Compatibility Library (v4) is now required.

  • Added ActionBarSherlock.Activity, ActionBarSherlock.FragmentActivity,
    and ActionBarSherlock.ListActivity for extension by implementing
    activities, the latter of which is deprecated. This affords a much tighter
    integration and allows for the use of other new features listed below.
  • New API method: layout(Fragment) will use the fragment argument as the
    content to the activity.
  • New API method: menu(int) allows for the inflation of menu XMLs from a
    resource. For the non-native implementation, the XML can be inflated to a
    custom Menu which can then be applied appropriately to the third-party
    action bar. Sub-menus are also supported. Third-party action bar handlers
    should implement ActionBarSherlock.HasMenu for this functionality. This
    feature requires that activities extend from one of the provided activity
    base classes.
  • New API method: homeAsUp(boolean). This mimics the native method
    setDisplayHomeAsUpEnalbed on the native action bar. Third-party action bar
    handlers should implement ActionBarSherlock.HasHomeAsUp for this
    functionality.
  • New API method: useLogo(boolean) will trigger the action bar to hide the
    application icon/home button and title and show a larger logo representing
    the application. Third-party action bar handlers should implement
    ActionBarSherlock.HasLogo for this functionality.
  • New API method: listNavigation(SpinnerAdapter, OnNavigationListener). Tells
    the action bar to use drop-down style navigation with the specified list of
    items and callback listener. Third-party action bar handlers should
    implement ActionBarSherlock.HasListNavigation for this functionality.
  • Javadocs are now available at
    jakewharton.github.com/ActionBarSherlock.
  • A standalone JAR is now available via the
    GitHub downloads page
    or in my
    personal maven repository
    as com.jakewharton:android-actionbarsherlock:2.1.0.