From 4e2c9dc74b74b1ba10793177475a599f75fbb18b Mon Sep 17 00:00:00 2001
From: Scott Main If you want to maintain compatibility with Android versions prior to 4.0, while also supporting
the new the accessibility APIs, you can do so with the latest version of the v4 support
-library (in Compatibility Package, r4)
+library (in Compatibility Package, r4)
using a set of utility classes that provide the new accessibility APIs in a backward-compatible
design.
Various APIs are also available in the Android Support Library that allow you to implement +href="{@docRoot}tools/support-library/index.html">Support Library that allow you to implement new features on older versions of the platform.
For more information about how API levels work, read
Note: These new APIs are also available for previous versions
-of Android through the Android Support
+of Android through the Android Support
Library, with the {@link android.support.v4.text.BidiFormatter} class and related APIs. Note: These new APIs are also available for previous versions
-of Android through the Android Support
+of Android through the Android Support
Library, with the {@link android.support.v4.view.accessibility.AccessibilityNodeInfoCompat}
class.
Additionally, you should consider using a support library from the Compatibility Package so that you can add Compatibility Package so that you can add Fragments to your activity designs when running on larger screens such as tablets.
@@ -643,7 +643,7 @@ over 95% of Android-powered devices (as indicated by the Platform Versions dashboard).By using a support library from the Compatibility Package, you can also use APIs +href="{@docRoot}tools/support-library/index.html">Compatibility Package, you can also use APIs from some of the latest versions (such as Android 3.0) while still supporting versions as low as Android 1.6. The support library includes APIs for Fragments,
This library includes APIs for fragments, loaders, and some updated cla simply adding this library to your Android project, you can use these APIs in your application and remain compatible with Android 1.6. For information about how to get the library and start using it in your application, see the Compatibility Library document.
+href="{@docRoot}tools/support-library/index.html">Compatibility Library document. diff --git a/docs/html/guide/practices/tablets-and-handsets.jd b/docs/html/guide/practices/tablets-and-handsets.jd index 8d6d3dd3777f..a63a368ab920 100644 --- a/docs/html/guide/practices/tablets-and-handsets.jd +++ b/docs/html/guide/practices/tablets-and-handsets.jd @@ -141,7 +141,7 @@ bar below.If you want to use fragments in your application and remain compatible with versions of Android older than 3.0, you can do so by using the Android Support Library (downloadable from the +href="{@docRoot}tools/support-library/index.html">Support Library (downloadable from the SDK Manager).
The support library includes APIs for fragments, {@code android:minSdkVersion} value can be as low as {@code "4"}). For information about how to get the -library and start using it, see the Support +library and start using it, see the Support Library document.
The support library does not provide APIs for the action bar, but you can use diff --git a/docs/html/guide/topics/ui/accessibility/apps.jd b/docs/html/guide/topics/ui/accessibility/apps.jd index 13b4538edeb7..da24d03adf60 100644 --- a/docs/html/guide/topics/ui/accessibility/apps.jd +++ b/docs/html/guide/topics/ui/accessibility/apps.jd @@ -351,7 +351,7 @@ following approaches:
The example code below shows how override these three methods by using {@link android.support.v4.view.ViewCompat#setAccessibilityDelegate ViewCompat.setAccessibilityDelegate()}. Note that this sample code requires that the Android -Support Library for API Level 4 (revision +Support Library for API Level 4 (revision 5 or higher) is added to your project.
@@ -534,7 +534,7 @@ ViewCompat.setAccessibilityDelegate(new AccessibilityDelegateCompat() {
In applications targeting Android 4.0 (API Level 14) and higher, you can implement these methods
directly in your custom view class. For another example of this approach, see the Android
-Support Library (revision 5 or higher)
+Support Library (revision 5 or higher)
sample {@code AccessibilityDelegateSupportActivity} in
({@code <sdk>/extras/android/support/v4/samples/Support4Demos/}).
@@ -594,7 +594,7 @@ methods.
example implementation of this accessibility feature, see
{@code AccessibilityNodeProviderActivity} in the ApiDemos sample project. You can implement a
virtual view hierarchy that is compatible with Android 1.6 and later by using the
- Support Library with the
+ Support Library with the
{@link android.support.v4.view.ViewCompat#getAccessibilityNodeProvider
ViewCompat.getAccessibilityNodeProvider()} method and providing an implementation with
{@link android.support.v4.view.accessibility.AccessibilityNodeProviderCompat}.
diff --git a/docs/html/guide/topics/ui/accessibility/checklist.jd b/docs/html/guide/topics/ui/accessibility/checklist.jd
index 9473d1bd3f9d..960cca290671 100644
--- a/docs/html/guide/topics/ui/accessibility/checklist.jd
+++ b/docs/html/guide/topics/ui/accessibility/checklist.jd
@@ -73,7 +73,7 @@ helps you focus on the key development issues to get the details of accessibilit
your application,
implement accessibility interfaces for your custom views and provide content descriptions.
For custom controls that are intended to be compatible with versions of Android back to 1.6,
- use the Support Library to implement
+ use the Support Library to implement
the latest accessibility features.The ability for you to build and deploy accessibility services was introduced with Android 1.6 (API Level 4) and received significant improvements with Android 4.0 (API Level 14). The Android - Support Library was also updated with + Support Library was also updated with the release of Android 4.0 to provide support for these enhanced accessibility features back to Android 1.6. Developers aiming for widely compatible accessibility services are encouraged to use the Support Library and develop for the more advanced accessibility features introduced in @@ -448,7 +448,7 @@ android.accessibilityservice.AccessibilityService} and can be used as a base for accessibility services that are compatible with Android 1.6 (API Level 4) and higher.
Although {@link android.app.DialogFragment} was first added to the platform in Android 3.0 (API level 11), if your app supports versions of Android older than 3.0—even as low as Android 1.6—you can use the {@link android.support.v4.app.DialogFragment} class that's available in -the support library for backward +the support library for backward compatibility.
Note: The code samples below show how to create dialogs for a time -picker and date picker using the support +picker and date picker using the support library APIs for {@link android.support.v4.app.DialogFragment}. If your app's {@code minSdkVersion} is 11 or higher, you can instead use the platform version of {@link android.app.DialogFragment}.
@@ -67,7 +67,7 @@ fragment's {@link android.support.v4.app.DialogFragment#onCreateDialog onCreateDNote: If your app supports versions of Android older than 3.0, be sure you've set up your Android project with the support library as described in Setting Up a Project to Use a +href="{@docRoot}tools/support-library/setup.html">Setting Up a Project to Use a Library.
Note: If your app supports versions of Android older than 3.0, be sure you've set up your Android project with the support library as described in Setting Up a Project to Use a +href="{@docRoot}tools/support-library/setup.html">Setting Up a Project to Use a Library.
Although the {@link android.support.v4.content.CursorLoader} APIs were first introduced in Android 3.0 (API level 11), they are also available in the Support Library so that your app may use them +href="{@docRoot}tools/support-library/index.html">Support Library so that your app may use them while supporting devices running Android 1.6 or higher.
For more information about using a {@link diff --git a/docs/html/guide/topics/ui/notifiers/notifications.jd b/docs/html/guide/topics/ui/notifiers/notifications.jd index 05ec279fa7be..e0c87d74d431 100644 --- a/docs/html/guide/topics/ui/notifiers/notifications.jd +++ b/docs/html/guide/topics/ui/notifiers/notifications.jd @@ -94,7 +94,7 @@ page.title=Notifications
Note: Except where noted, this guide refers to the {@link android.support.v4.app.NotificationCompat.Builder NotificationCompat.Builder} class - in the version 4 Support Library. + in the version 4 Support Library. The class {@link android.app.Notification.Builder Notification.Builder} was added in Android 3.0.
diff --git a/docs/html/sdk/exploring.jd b/docs/html/sdk/exploring.jd index 9323f2e707c5..77490602d5c6 100644 --- a/docs/html/sdk/exploring.jd +++ b/docs/html/sdk/exploring.jd @@ -77,7 +77,7 @@ Google APIs.As you continue developing apps, you may need to install additional versions of Android for the emulator and other packages such as the Android Support Library. +href="{@docRoot}tools/support-library/index.html">Android Support Library. To install more packages, use the SDK Manager, which you can open from Android Studio by clicking SDK Manager diff --git a/docs/html/sitemap.txt b/docs/html/sitemap.txt index 46164c170b79..6291a3e2d932 100644 --- a/docs/html/sitemap.txt +++ b/docs/html/sitemap.txt @@ -164,7 +164,7 @@ http://developer.android.com/tools/sdk/tools-notes.html http://developer.android.com/tools/sdk/eclipse-adt.html http://developer.android.com/tools/revisions/platforms.html http://developer.android.com/tools/extras/index.html -http://developer.android.com/tools/extras/support-library.html +http://developer.android.com/tools/support-library/index.html http://developer.android.com/tools/extras/oem-usb.html http://developer.android.com/tools/samples/index.html http://developer.android.com/tools/adk/index.html diff --git a/docs/html/tools/help/sdk-manager.jd b/docs/html/tools/help/sdk-manager.jd index 215ce6f2743f..276206fc7540 100644 --- a/docs/html/tools/help/sdk-manager.jd +++ b/docs/html/tools/help/sdk-manager.jd @@ -55,7 +55,7 @@ plus others not included in the framework at all) on devices running a platform version as old as Android 1.6. All of the activity templates available when creating a new project with the ADT Plugin require this. For more information, read Support Library. +href="{@docRoot}tools/support-library/index.html">Support Library.
If your application is designed for devices running Android 3.x, make your application compatible with older versions of Android by adding the - Support Library to your + Support Library to your application project. The Support Library provides static support libraries that you can add to your Android application, which enables you to use APIs that are either not available on older platform versions or use utility APIs that are not part of the framework APIs.
diff --git a/docs/html/training/animation/screen-slide.jd b/docs/html/training/animation/screen-slide.jd index 716805e6381c..07d779f0f072 100644 --- a/docs/html/training/animation/screen-slide.jd +++ b/docs/html/training/animation/screen-slide.jd @@ -28,7 +28,7 @@ trainingnavtop=true Screen slides are transitions between one entire screen to another and are common with UIs like setup wizards or slideshows. This lesson shows you how to do screen slides with a {@link android.support.v4.view.ViewPager} provided by the support library. + "{@docRoot}tools/support-library/index.html">support library. {@link android.support.v4.view.ViewPager}s can animate screen slides automatically. Here's what a screen slide looks like that transitions from one screen of content to the next: diff --git a/docs/html/training/backward-compatible-ui/index.jd b/docs/html/training/backward-compatible-ui/index.jd index 82087a603ab4..4baa55c2b210 100644 --- a/docs/html/training/backward-compatible-ui/index.jd +++ b/docs/html/training/backward-compatible-ui/index.jd @@ -13,7 +13,7 @@ startpage=trueIf you're developing with Eclipse, you can run the app now, but not much happens. diff --git a/docs/html/training/basics/fragments/support-lib.jd b/docs/html/training/basics/fragments/support-lib.jd index b097de15b5f8..d949267c1e0f 100644 --- a/docs/html/training/basics/fragments/support-lib.jd +++ b/docs/html/training/basics/fragments/support-lib.jd @@ -14,12 +14,12 @@ trainingnavtop=true
The Android Support Library provides a JAR +
The Android Support Library provides a JAR file with an API library that allows you to use some of the more recent Android APIs in your app while running on earlier versions of Android. For instance, the Support Library provides a version of the {@link android.app.Fragment} APIs that you can use on Android 1.6 (API level 4) and diff --git a/docs/html/training/basics/supporting-devices/platforms.jd b/docs/html/training/basics/supporting-devices/platforms.jd index 04872a342a9c..c38101a5c6cf 100644 --- a/docs/html/training/basics/supporting-devices/platforms.jd +++ b/docs/html/training/basics/supporting-devices/platforms.jd @@ -23,7 +23,7 @@ previous.link=screens.html
Tip: In order to provide the best features and functionality across several Android versions, you should use the Android Support Library in your app, +href="{@docRoot}tools/support-library/index.html">Android Support Library in your app, which allows you to use several recent platform APIs on older versions.
diff --git a/docs/html/training/design-navigation/wireframing.jd b/docs/html/training/design-navigation/wireframing.jd index 42f892df1f61..1801f91f6c18 100644 --- a/docs/html/training/design-navigation/wireframing.jd +++ b/docs/html/training/design-navigation/wireframing.jd @@ -121,5 +121,5 @@ previous.link=ancestral-temporal.htmlViewPagerViewPagerThe examples in this lesson use the {@link android.support.v4.view.GestureDetectorCompat} and {@link android.support.v4.view.MotionEventCompat} classes. These classes are in the -Support Library. You should use +Support Library. You should use Support Library classes where possible to provide compatibility with devices running Android 1.6 and higher. Note that {@link android.support.v4.view.MotionEventCompat} is not a replacement for the {@link android.view.MotionEvent} class. Rather, it provides static utility diff --git a/docs/html/training/gestures/movement.jd b/docs/html/training/gestures/movement.jd index fdc1ea4ef4ff..136b37a3337e 100644 --- a/docs/html/training/gestures/movement.jd +++ b/docs/html/training/gestures/movement.jd @@ -91,7 +91,7 @@ determining factor in tracking a gesture's characteristics or even deciding whether the gesture occurred. To make velocity calculation easier, Android provides the {@link android.view.VelocityTracker} class and the {@link android.support.v4.view.VelocityTrackerCompat} class in the -Support Library. +Support Library. {@link android.view.VelocityTracker} helps you track the velocity of touch events. This is useful for gestures in which velocity is part of the criteria for the diff --git a/docs/html/training/gestures/multi.jd b/docs/html/training/gestures/multi.jd index 6a0df11f4c5c..58404827682d 100644 --- a/docs/html/training/gestures/multi.jd +++ b/docs/html/training/gestures/multi.jd @@ -123,7 +123,7 @@ the pointer associated with the action. This is illustrated in the snippet below
Note: This example uses the {@link android.support.v4.view.MotionEventCompat} class. This class is in the -Support Library. You should use +Support Library. You should use {@link android.support.v4.view.MotionEventCompat} to provide the best support for a wide range of platforms. Note that {@link android.support.v4.view.MotionEventCompat} is not a replacement for the {@link android.view.MotionEvent} class. Rather, it provides static utility diff --git a/docs/html/training/implementing-navigation/ancestral.jd b/docs/html/training/implementing-navigation/ancestral.jd index c3c7ef8a882b..12d500589866 100644 --- a/docs/html/training/implementing-navigation/ancestral.jd +++ b/docs/html/training/implementing-navigation/ancestral.jd @@ -69,7 +69,7 @@ in the {@code &l element.
If your app supports Android 4.0 and lower, include the -Support Library with your app and +Support Library with your app and add a {@code <meta-data>} element inside the {@code <activity>}. Then specify the parent activity as the value diff --git a/docs/html/training/implementing-navigation/index.jd b/docs/html/training/implementing-navigation/index.jd index 519f6bb43a05..5b657164f720 100644 --- a/docs/html/training/implementing-navigation/index.jd +++ b/docs/html/training/implementing-navigation/index.jd @@ -13,7 +13,7 @@ startpage=true
Note: Several elements of this class require the -Support Library APIs. +Support Library APIs. If you have not used the Support Library before, follow the lesson about Using the Support Library to get your project set up.
diff --git a/docs/html/training/implementing-navigation/lateral.jd b/docs/html/training/implementing-navigation/lateral.jd index b31449701a5e..97e039862677 100644 --- a/docs/html/training/implementing-navigation/lateral.jd +++ b/docs/html/training/implementing-navigation/lateral.jd @@ -57,7 +57,7 @@ Views design guide.You can create swipe views in your app using the {@link android.support.v4.view.ViewPager} widget, available in the -Support Library. The +Support Library. The {@link android.support.v4.view.ViewPager} is a layout widget in which each child view is a separate page (a separate tab) in the layout.
diff --git a/docs/html/training/implementing-navigation/nav-drawer.jd b/docs/html/training/implementing-navigation/nav-drawer.jd index 38b7345456dd..2b5e4f809d64 100644 --- a/docs/html/training/implementing-navigation/nav-drawer.jd +++ b/docs/html/training/implementing-navigation/nav-drawer.jd @@ -43,7 +43,7 @@ app, the user touches the app icon in the action bar.This lesson describes how to implement a navigation drawer using the {@link android.support.v4.widget.DrawerLayout} APIs available in the -Support Library.
+Support Library.Navigation Drawer Design
diff --git a/docs/html/training/implementing-navigation/temporal.jd b/docs/html/training/implementing-navigation/temporal.jd index 0719ba6833c2..3abab53fc64f 100644 --- a/docs/html/training/implementing-navigation/temporal.jd +++ b/docs/html/training/implementing-navigation/temporal.jd @@ -85,7 +85,7 @@ because it can determine the logical Back or Up navigation pat information.If your app supports Android 4.0 and lower, include the -Support Library with your app and +Support Library with your app and add a {@code <meta-data>} element inside the {@code <activity>}. Then specify the parent activity as the value diff --git a/docs/html/training/multiscreen/index.jd b/docs/html/training/multiscreen/index.jd index d09540e87ced..2d34b2870721 100644 --- a/docs/html/training/multiscreen/index.jd +++ b/docs/html/training/multiscreen/index.jd @@ -19,7 +19,7 @@ href="http://developer.android.com/guide/components/activities.html">Activities<
Note: This class and the associated sample use the support library in order to use the {@link +href="{@docRoot}tools/support-library/index.html">support library in order to use the {@link android.app.Fragment} APIs on versions lower than Android 3.0. You must download and add the library to your application in order to use all APIs in this class.
-- cgit v1.2.3-59-g8ed1b