SearchViewsuggestions now work properly.
Locale.ROOTis not present on pre-Honeycomb.
ShareActionProviderworks when only one intent is available.
artifactId is now 'actionbarsherlock'.
.Dialog themes are now deprecated. These will be removed in a future
version of the library.
SearchViewwidget for standard search interaction (API 8+ only)
ShareActionProviderin the split action bar no longer fills the entire screen.
ShareActionProvidernow does file I/O on a background thread.
ColorDrawablenot respecting bounds when used as a stacked background.
onClicksearches the correct context for the declared method.
CollapsibleActionViewcallbacks are dispatched in both native and compatbility action bars.
.ForceOverflowthemes. These never should have been included.
NullPointerExceptionwhen expanding an action item.
NullPointerExceptionwhen the hardware menu key was pressed in an activity that is forcing the overflow menu.
onCreateif activity is finishing.
falsewhen appropriate to avoid rendering artifacts.
ShareActionProviderwidget for use as action items.
nullon initial tab selection callback.
Complete rewrite of the library to backport the Android 4.0 action bar.
SherlockFragmentActivity) which extend from the native activities.
android-support-v4.jarin your project separately.
am-prefixed attributes in the theme.
FragmentManagercan no longer occur when an attempt is being made to save to a
Bundlethat has not yet been created.
Library now uses the
r6 version of the compatibility library for its base.
Ice Cream Sandwich-specific implementations are currently disabled, however,
but will be added in a future version of the library.
ActivityCompat have be added back in
to ease transition to this library but all their methods and the classes
themselves have been deprecated.
Rewritten menu and action item support from Ice Cream Sandwich.
Window.FEATURE_ACTION_ITEM_TEXTflag. You should now use the
showAsActionattribute and/or the
setShowAsAction(int)method on each
MenuItemto control whether or not text is shown
Fix: List navigation no longer becomes unusable on certain device
findItem(int)method now properly returns the support version of
FragmentPagerAdapterhas been changed to
publicscope to allow for easier access to your fragments that it is managing.
SherlockPreferenceActivitynow provides full fragment and loader support.
r4version of the compatibility library for its base. Ice Cream Sandwich-specific implementations are currently disabled, however, but will be added in a future version of the library.
MenuItemto maintain consistency.
abHomeLayouttheme attribute is now honored.
onPrepareOptionsMenuis now properly dispatched upon menu invalidation.
ADT 14 is now required. Maven 3 is required if building from the command line.
onClickattributes will now check for an
onClickmethod that takes an
onClickmethod declared in the XML.
showDialogstate when not being used as a popup.
-1when in tab navigation but no tab is selected. This brings the library in line with the post-3.0 behavior.
getTabAtno longer throw
NullPointerExceptions on post-3.0 when no tab was selected or no tab existed at the specified position, respectively.
findFragmentByIdnow properly returns fragments attached to
android.R.id.contentwhen run on pre-3.0 devices.
IllegalStateExceptionwhen being used as a regular fragment (i.e., not as a popup). See StackOverflow for more information.
NullPointerExceptionwhen the target fragment no longer exists.
ViewPagerthat contributed items to the options menu were caught in a race condition causing inconsistent results when a new page was selected. This regression was introduced in version 3.2.2.
FragmentMapActivitydue to how it was referencing resources from the main library.
ViewPagerno longer receive context menu events.
ViewPagernow determines whether or not an activity menu invalidation is required independently of whether or not fragments were created or destroyed. This should fix an edge case where an activity with a
ViewPagercontaining only two fragments would not get its menu properly invalidated.
MenuItemclasses causing an easy pitfall for
Added support for
MapView and the Google APIs through the use of
FragmentMapActivity. If you are using a map within a fragment you must
ensure it is always attached to an activity which extends from this new base
Since supporting maps requires compiling against the Google APIs, this
functionality is implemented in the form of a plugin which is to be used
alongside the normal library. You can choose to add it as an additional
library project or by including it as a
.jar. Maven users may simply
include the additional dependency (artifactId:
ViewPagerno longer contribute to the activity menu.
ActionBar.Tabhas been changed from an interface to an abstract class to mirror its native counterpart.
abs__to avoid conflicts when including in your project.
MenuItem.setVisiblenow properly updates the associated action item and native menu item visible state.
MenuItem.getMenuInfo()was throwing runtime exception. Will now just return
WebViewcontained in a
ViewPagerwould not register.
MenuItem.getSubMenunow returns a support instance rather than a native instance.
onInflateincorrectly regressed to use
Activityinstead of a
FragmentActivityin their method signatures.
android.R.id.contentupon activity recreation.
onPrepareOptionsMenunot dispatched to fragments. This still will only occur if the activity method returns true (which is the default).
nullwhen the item was not found on Android 3.0+.
Due to shortcomings in the Android theming system, a small change must be made
in how this library handles themes. If you were using a custom style for
actionBarStyle you must now specify its attributes in the root of the theme
and prefix them with 'ab'.
You can see an example of this in the
SherlockCustom theme in
r3version of the compatibility library for its base.
actionBarStyleis no longer a valid theme attribute (see note above).
samples/demos/and merged in the old 'featuredemo'.
Window.FEATURE_ACTION_BAR_OVERLAYis now honored on pre-3.0 devices.
finalmodifier on the native type, you must use
IndexOutOfBoundsExceptions when the item was not found.
MenuIteminstance for home.
Widget.Sherlock.Light.Spinner.DropDown.ActionBarstyles are now
Widget.Sherlock.ActionBarView_TabXXXstyles are now
This version is a hotfix for incompatibilities introduced with the SDKs for
3.1 r2 and 3.2 r1. Due to unavoidable changes in the underlying SDK, the library
must now be compiled against API level 13.
actionModePopupWindowStyleare no longer valid theme attributes.
com.actionbarsherlock.internalpackage which were not meant for public consumption. Despite being given
publicscope in this new package, these classes should NOT be used under any circumstances as their API can be considered highly volatile and is subject to change often and without warning.
onOptionsItemSelected()not being called in fragments if the activity version returns
onCreateOptionsMenu()not being called in fragments on Android 3.0+.
setCustomView()no longer automatically enables the custom view on pre-3.0. You must call
setDisplayShowCustomEnabled()in order to display the view.
The API has been rewritten to mimic that of the native action bar. As a result,
usage now only requires changing a few imports to use the support versions
of classes and calling
getSupportActionBar(). See the README for more info.
The rewrite necessitated tight interaction with the
to the point where its sources are now included. You are no longer required to
have the standalone
More details are available at http://actionbarsherlock.com
No changes to library code.
samples/dependencies.pyscript to automatically download the needed dependencies for the sample projects.
WARNING: The Android Compatibility Library (v4) is now required.
ActionBarSherlock.ListActivityfor 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.
layout(Fragment)will use the fragment argument as the content to the activity.
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.HasMenufor this functionality. This feature requires that activities extend from one of the provided activity base classes.
homeAsUp(boolean). This mimics the native method
setDisplayHomeAsUpEnalbedon the native action bar. Third-party action bar handlers should implement
ActionBarSherlock.HasHomeAsUpfor this functionality.
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.HasLogofor this functionality.
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.HasListNavigationfor this functionality.