This page provides details about older Support Library package releases. For the most recent Support Library releases, see Recent Support Library Revisions.
Revision 26.0.0 Beta 2
(June 2017)
Please note that 26.0.0-beta2 is a pre-release version. Its API surface is subject to change, and it does not necessarily include features or bug fixes from the latest stable versions of Support Library.
Important: The support libraries are now available through Google's Maven repository. You do not need to download the support repository from the SDK Manager. For more information, see Support Library Setup.
New APIs
- New
JobIntentServiceclass, to help developers schedule tasks in a way that complies with the new Android O background execution limits.
API Diffs
Bug fixes
- Android O SDK drop causes loss of italics in TextViews
- Null pointer exception when connecting to MediaBrowserServiceCompat
- TextInputLayout must set hints on onProvideAutofillStructure()
- Stack overflow when using TextView autosize on O
Revision 26.0.0 Beta 1
(May 2017)
Please note that 26.0.0-beta1 is a pre-release version. Its API surface is subject to change, and it does not necessarily include features or bug fixes from the latest stable versions of Support Library.
Important: The support libraries are now available through Google's Maven repository. You do not need to download the support repository from the SDK Manager. For more information, see Support Library Setup.
Important changes
FragmentActivity.setSupportMediaController()andFragmentActivity.getSupportMediaController()have been removed. Please use the new staticMediaControllerCompat.setMediaController()andMediaControllerCompat.getMediaController()methods.BottomNavigationViewnow callsonNavigationItemReselected()when an already-selected item is selected, rather than callingonNavigationItemSelected().- All instances of the
findViewById()method now return<T extends View> Tinstead ofView. This change has the following implications:- This may result in existing code now having ambiguous return type,
for example if there is both
someMethod(View)andsomeMethod(TextView)that takes the result of a call tofindViewById(). - When using Java 8 source language, this requires an explicit cast to
Viewwhen the return type is unconstrained (for example,assertNotNull(findViewById(...)).someViewMethod()). - Overrides of non-final
findViewById()methods (for example,Activity.findViewById()) will need their return type updated.
- This may result in existing code now having ambiguous return type,
for example if there is both
New APIs
-
FragmentManagerandFragmenthave anisStateSaved()method to allow querying whether or not a transaction will be allowed without state loss. This is especially useful to check when handling anonClick()event before executing any transaction. - Path motion is supported in
AnimatedVectorDrawableCompat. Path motion allows one object animator to change two properties at the same time based on one path; the path is specified asandroid:pathDatain the animator’s XML). - Physics-based
animation:
- New
FlingAnimationthat supports animating with an initial velocity and smoothly slows down. - Subclasses of
DynamicAnimationsupport animating custom property for any object. - Both
SpringAnimationandFlingAnimationcan now animate a float value without requiring aViewor anObjectto be associated with it.
For more information, see the Spring animation and Fling animation preview pages.
- New
-
Font
support in XML:
-
ResourcesCompat.getFontallows loading font resources—including font-family XML—that may be used withTextView.setTypeface(). - When using AppCompat, TextView supports specifying a font resource or
font-family XML via the
android:fontFamilyXML attribute. - Use XML font-family to create families of fonts with style and weight
variations. (If you use the support library classes to do this, use the
app:attributes as well as theandroid:attributes.)
-
- Downloadable
fonts:
- New
FontsContractCompatthat allows you to request fonts from a font provider instead of bundling them in your app. - Fonts can also be requested in XML and used in layouts.
- New
-
Emoji compatibility
library:
-
EmojiCompatcan process a givenCharSequenceand addEmojiSpans. -
EmojiTextViewand other widgets to display emoji. -
FontRequestEmojiCompatConfigto request emoji font from a font provider.
-
-
Autosizing
TextView:
- New methods in
TextView
- New methods in