diff --git a/docs/html/topic/libraries/support-library/features.jd b/docs/html/topic/libraries/support-library/features.jd index 0f63bf6696874..614392e00d441 100755 --- a/docs/html/topic/libraries/support-library/features.jd +++ b/docs/html/topic/libraries/support-library/features.jd @@ -7,7 +7,15 @@ page.title=Support Library Features
This library is designed to be used with Android 1.6 (API level 4) and higher. It includes the - largest set of APIs compared to the other libraries, including support for application components, - user interface features, accessibility, data handling, network connectivity, and programming - utilities. Here are a few of the key classes included in the v4 library:
- -- There are many other APIs included in this library. For complete, detailed information about the - v4 Support Library APIs, see the {@link android.support.v4.app android.support.v4} package in the - API reference. + These libraries are designed to be used with Android 2.3 (API level 9) and + higher. They include the largest set of APIs compared to the other libraries, + including support for application components, user interface features, + accessibility, data handling, network connectivity, and programming + utilities.
-Caution: Using dynamic dependencies, especially for higher version -numbers, can cause unexpected version updates and regression incompatibilities.
++ For complete, detailed information about the classes and methods provided by + the v4 support libraries, see the {@link android.support.v4.app + android.support.v4} package in the API reference. +
+ + +
+ Note: Prior to Support Library revision 24.2.0, there was a
+ single v4 support library. That library was divided into multiple modules to
+ improve efficiency. For backwards compatibility, if you list
+ support-v4 in your Gradle script, your APK will include all of
+ the v4 modules. However, to reduce APK size, we recommend that you just list
+ the specific modules your app needs.
+
+ Provides compatibility wrappers for a number of framework APIs, such as
+ Context.obtainDrawable() and
+ View.performAccessibilityAction().
+
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:support-v4:24.1.1 +com.android.support:support-compat:24.2.0+
+ Provides a number of utility classes, such as {@link + android.support.v4.content.AsyncTaskLoader} and {@link + android.support.v4.content.PermissionChecker}. +
+ ++ The Gradle build script dependency identifier for this library is as follows: +
+ ++com.android.support:support-core-utils:24.2.0 ++ +
+ Implements a variety of UI-related components, such as {@link + android.support.v4.view.ViewPager}, {@link + android.support.v4.widget.NestedScrollView}, and {@link + android.support.v4.widget.ExploreByTouchHelper}. +
+ ++ The Gradle build script dependency identifier for this library is as follows: +
+ ++com.android.support:support-core-ui:24.2.0 ++ +
+ Backports portions of the media framework, + including {@link android.media.browse.MediaBrowser} and {@link + android.media.session.MediaSession}. +
+ ++ The Gradle build script dependency identifier for this library is as follows: +
+ ++com.android.support:support-media-compat:24.2.0 ++ +
+ Adds support for encapsulation of user interface and functionality with + fragments, + enabling applications to provide layouts that adjust between small and + large-screen devices. This module has dependencies on compat, core-utils, core-ui, and media-compat. +
+ ++ The Gradle build script dependency identifier for this library is as follows: +
+ ++com.android.support:support-fragment:24.2.0 +
There are several libraries designed to be used with Android 2.1 (API level 7) and higher. +
There are several libraries designed to be used with Android 2.3 (API level 9) and higher. These libraries provide specific feature sets and can be included in your application independently from each other.
@@ -216,7 +245,7 @@ com.android.support:multidex:1.0.0The Gradle build script dependency identifier for this library is as follows:
-com.android.support:appcompat-v7:24.1.1 +com.android.support:appcompat-v7:24.2.0@@ -231,7 +260,7 @@ implementations, and are used extensively in layouts for TV apps.
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:cardview-v7:24.1.1 +com.android.support:cardview-v7:24.2.0@@ -247,7 +276,7 @@ For detailed information about the v7 gridlayout library APIs, see the
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:gridlayout-v7:24.1.1 +com.android.support:gridlayout-v7:24.2.0@@ -270,7 +299,7 @@ reference.
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:mediarouter-v7:24.1.1 +com.android.support:mediarouter-v7:24.2.0
The v7 mediarouter library APIs introduced in Support Library @@ -290,7 +319,7 @@ title card.
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:palette-v7:24.1.1 +com.android.support:palette-v7:24.2.0@@ -306,7 +335,7 @@ limited window of data items.
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:recyclerview-v7:24.1.1 +com.android.support:recyclerview-v7:24.2.0@@ -329,18 +358,18 @@ such as {@link android.support.v7.preference.CheckBoxPreference} and
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:preference-v7:24.1.1 +com.android.support:preference-v7:24.2.0
This library is designed to be used with Android 2.2 (API level 8) and higher. +
This library is designed to be used with Android 2.3 (API level 9) and higher. This library provides specific feature sets and can be included in your application independently from other libraries.
This library is designed to be used with Android (API level 8) and higher. It adds support for +
This library is designed to be used with Android 2.3 (API level 9) and higher. It adds support for
the RenderScript computation
framework. These APIs are included in the {@link android.support.v8.renderscript} package. You
should be aware that the steps for including these APIs in your application is very
@@ -380,7 +409,7 @@ defaultConfig {
The Gradle build script dependency identifier for this library is as follows: The Gradle build script dependency identifier for this library is as follows: The Gradle build script dependency identifier for this library is as follows: The Gradle build script dependency identifier for this library is as follows:
-com.android.support:support-v13:24.1.1
+com.android.support:support-v13:24.2.0
@@ -406,7 +435,7 @@ for preference interfaces such as
-com.android.support:preference-v14:24.1.1
+com.android.support:preference-v14:24.2.0
@@ -429,7 +458,7 @@ interface and classes, such as
-com.android.support:preference-leanback-v17:24.1.1
+com.android.support:preference-leanback-v17:24.2.0
@@ -465,7 +494,7 @@ com.android.support:preference-leanback-v17:24.1.1
-com.android.support:leanback-v17:24.1.1
+com.android.support:leanback-v17:24.2.0
@@ -480,7 +509,7 @@ package provides APIs to support adding annotation metadata to your apps.
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:support-annotations:24.1.1 +com.android.support:support-annotations:24.2.0@@ -498,7 +527,7 @@ snackbars, and tabs. <
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:design:24.1.1 +com.android.support:design:24.2.0@@ -519,7 +548,7 @@ Callback.
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:customtabs:24.1.1 +com.android.support:customtabs:24.2.0@@ -543,7 +572,7 @@ PercentRelativeLayout.
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:percent:24.1.1 +com.android.support:percent:24.2.0@@ -566,5 +595,5 @@ RecommendationExtender.
The Gradle build script dependency identifier for this library is as follows:
-com.android.support:recommendation:24.1.1 +com.android.support:recommendation:24.2.0diff --git a/docs/html/topic/libraries/support-library/revisions.jd b/docs/html/topic/libraries/support-library/revisions.jd index 3b25fb0207674..4e14c7054bbdb 100644 --- a/docs/html/topic/libraries/support-library/revisions.jd +++ b/docs/html/topic/libraries/support-library/revisions.jd @@ -6,9 +6,324 @@ page.metaDescription=This page provides details about the Support Library packag
This page provides details about the Support Library package releases.
+
Android Support Library, revision 24.2.0
+ (August 2016)
+
Release 24.2.0 contains the following changes:
+ + + +Note: Release 24.2.0 removes support for + Android 2.2 (API level 8) and lower. Classes and methods that exist only to + serve those system versions are now marked as deprecated and should no longer + be used. These deprecated classes and methods may be removed in a future + release. +
+ +With this release, the v4 Support Library has + been split into several smaller modules:
+ +support-compat
+ Context.getDrawable() and
+ View.performAccessibilityAction().
+ support-core-utils
+ support-core-ui
+ support-media-compat
+ support-fragment
+ support-compat,
+ support-core-utils, support-core-ui, and
+ support-media-compat.
+ For backwards compatibility, if you list support-v4 in your
+Gradle script, your APK will include all of these modules. However, to reduce
+APK size, we recommend that you just list the specific modules your app needs.
+
CustomTabsIntent.Builder.setInstantAppsEnabled() or
+ specify
+ EXTRA_ENABLE_INSTANT_APPS. By default, Custom Tabs will
+ default to enabling Instant Apps, when that feature becomes available.
+ android.support.transition
+ package backports the Transitions framework to API levels 14
+ and higher. For more information, see the android.support.transition reference.
+ <vector> (on API level 9 and higher) or
+ <animated-vector> (on API level 11 and higher) from a
+ resource ID, by using the new getDrawable() method.
+ LayoutParams.insetEdge and
+ LayoutParams.dodgeInsetEdges reference documentation.
+
+ DiffUtil class can calculate the difference between two
+ collections, and can dispatch a list of update operations that are suitable
+ to be consumed by a {@link android.support.v7.widget.RecyclerView.Adapter}.
+
+ RecyclerView.OnFlingListener has been added to support custom
+ behavior in response to flings. The SnapHelper
+ class provides an implementation specifically for snapping child views, and
+ the LinearSnapHelper
+ class extends this implementation to provide center-aligned snapping
+ behavior similar to {@link android.support.v4.view.ViewPager}.
+ Deprecated classes and methods are subject to removal in a future release. You should migrate away from these APIs as soon as possible.
+ +loadDescription()
+ which returns a correctly localized description.
+ ActivityCompat class
+ directly. The non-static getReferrer(Activity) method will be
+ made static in an upcoming release.
+ fromMediaSession().
+ fromQueueItem().
+ AccessibilityManagerCompat.AccessibilityStateChangeListener
+ interface.
+ SearchViewCompat.OnCloseListener interface.
+ SearchViewCompat.OnQueryTextListener
+ interface.
+ setSecondaryToolbarViews().
+ The following known issues have been fixed with release 24.2.0:
+ +SwipeRefreshLayout indicator is shown when
+ setRefreshing(true) is called before the first measurement pass
+ (AOSP
+ issue 77712)
+ TabLayout from flickering when changing pages
+ (AOSP
+ issue 180454)
+ ClassNotFoundException when unmarshalling
+ SavedState on API level 11 and lower (AOSP issue
+ 196430)
+ + A complete list of public bug fixes is available on the + AOSP Issue Tracker. +
+ +
+ Android Support Library, revision 24.1.1
(July 2016)
dependencies {
...
- compile "com.android.support:support-v4:24.1.1"
+ compile "com.android.support:support-core-utils:24.2.0"
}
+ Caution: Using dynamic dependencies (for example,
+ palette-v7:23.0.+) can cause unexpected version updates and
+ regression incompatibilities. We recommend that you explicitly specify a
+ library version (for example, palette-v7:24.2.0).
+
Support Library classes that provide support for existing framework APIs typically have the @@ -141,12 +148,12 @@ dependencies {
<uses-sdk - android:minSdkVersion="7" - android:targetSdkVersion="17" /> + android:minSdkVersion="14" + android:targetSdkVersion="23" />
The manifest setting tells Google Play that your application can be installed on devices with Android - 2.1 (API level 7) and higher.
+ 4.0 (API level 14) and higher.If you are using Gradle build files, the minSdkVersion setting in the build file
overrides the manifest settings.
In this case, the build file setting tells Google Play that the default build variant of your - application can be installed on devices with Android 2.2 (API level 8) and higher. For more + application can be installed on devices with Android 4.1 (API level 16) and higher. For more information about build variants, see Build System Overview.
- Note: If you are including the v4 support and v7 appcompat libraries in your
- application, you should specify a minimum SDK version of "7" (and not
- "4"). The highest support library level you include in your application determines
- the lowest API version in which it can operate.
+ Note: If you are including several support libraries, the
+ minimum SDK version must be the highest version required by any of
+ the specified libraries. For example, if your app includes both the v14 Preference Support library and the
+ v17 Leanback library, your minimum
+ SDK version must be 17 or higher.
Note: For Android versions earlier than 4.4.2 (API level 19)
-but greater than or equal to Android 4.0 (API level 14), use the animateLayoutChanges
-attribute to animate layouts. To learn more, see
-Property Animation and
-Animating Layout Changes.
android.support.transition package.