From 7adb4c8a45772c380defdd4e6b42a95c0ceea1e6 Mon Sep 17 00:00:00 2001
From: Joe Fernandez The Android framework provides two animation systems: property animation
- (introduced in Android 3.0) and view animation. Both animation systems are viable options,
+ and view animation. Both animation systems are viable options,
but the property animation system, in general, is the preferred method to use, because it
is more flexible and offers more features. In addition to these two systems, you can utilize Drawable
animation, which allows you to load drawable resources and display them one frame after
diff --git a/docs/html/guide/topics/media/mediarouter.jd b/docs/html/guide/topics/media/mediarouter.jd
index e0bf88914899b..f5e4f141ebe55 100644
--- a/docs/html/guide/topics/media/mediarouter.jd
+++ b/docs/html/guide/topics/media/mediarouter.jd
@@ -458,8 +458,8 @@ public class MediaRouterPlaybackActivity extends ActionBarActivity {
Note: In order for Wireless Display routes to show up in the media route
selection dialog, users must enable this option in the Settings app. The option is under
- the Display category and is called Cast screen on Android 4.4 (KitKat) and higher
- devices and Wireless Display on Android 4.2.x (Jelly Bean) devices. For more information
+ the Display category and is called Cast screen on Android 4.4 (KitKat)
+ and higher devices. For more information
on enabling this feature see this
Wireless display support page.
Note: The {@code android:showAsAction} attribute is
-available only on Android 3.0 (API Level 11) and greater. Note: If you want, you can handle all user input into the
search widget yourself, using various callback methods and listeners. This document, however,
@@ -376,30 +375,13 @@ for an a complete demonstration of how to search an SQLite database and use an
The answer depends mostly on whether you are developing for Android 3.0 (API Level 11 or
-higher), because the {@link android.widget.SearchView} widget was introduced in Android 3.0. So,
-if you are developing your application for a version of Android lower than 3.0, the search widget is
-not an option and you should use the search dialog to implement your search interface. If you are developing for Android 3.0 or higher, then the decision depends more on
-your needs. In most cases, we recommend that you use the search widget as an "action view" in the
-Action Bar. However, it might not be an option for you to put the search
-widget in the Action Bar for some reason (perhaps there's not enough space or you don't use the
-Action Bar). So, you might instead want to put the search widget somewhere in your activity layout.
-And if all else fails, you can still use the search dialog if you prefer to keep the search box
-hidden. In fact, you might want to offer both the dialog and the widget in some cases. For more
-information about the widget, skip to Using the Search Widget. The search dialog provides a floating search box at the top of the screen, with the application
icon on the left. The search dialog can provide search suggestions as the user types and, when
the user executes a search, the system sends the search query to a
searchable activity that performs the search. However, if you are developing
your application for devices running Android 3.0, you should consider using the search widget
-instead (see the side box).Animation
Using the Search Dialog
-Should I use the search dialog or the widget?
-
The search dialog is always hidden by default, until the user activates it. Your application can activate the search dialog by calling {@link @@ -685,14 +667,14 @@ layout). For example, figure 2 shows the search widget in the app bar.
The search widget provides the same functionality as the search dialog. It starts the appropriate activity when the user executes a search, and it can provide search suggestions and perform voice -search.
+search. If it's not an option for you to put the search widget in the Action Bar, you can instead +put the search widget somewhere in your activity layout.Note: When you use the search widget as an action view, you still might need to support using the search dialog, for cases in which the search widget does not fit in the Action Bar. See the following section about Using both the widget and the dialog.
-After you've created a searchable configuration and a
- In applications targeting Android 4.0 (API Level 14) and higher, you can implement these methods
+ 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)
sample {@code AccessibilityDelegateSupportActivity} in
({@code <sdk>/extras/android/support/v4/samples/Support4Demos/}). Note: You may find information on implementing accessibility for
-custom views written prior to Android 4.0 that describes the use of the
-{@link android.view.View#dispatchPopulateAccessibilityEvent dispatchPopulateAccessibilityEvent()}
-method for populating AccessibilityEvents. As of the Android 4.0 release, however, the recommended
-approach is to use the
-{@link android.view.View#onPopulateAccessibilityEvent onPopulateAccessibilityEvent()} and
-{@link android.view.View#onInitializeAccessibilityEvent onInitializeAccessibilityEvent()}
-methods. Android 4.1 (API Level 16) introduces a new type of user interface focus called Accessibility
- Focus. This type of focus can be used by accessibility services to select any visible user
+ Focus. Accessibility services can used this type of focus to select any visible user
interface element and act on it. This focus type is different from the more well known Input
Focus, which determines what on-screen user interface element receives input when a user
types characters, presses Enter on a keyboard or pushes the center button of a
diff --git a/docs/html/guide/topics/ui/controls/pickers.jd b/docs/html/guide/topics/ui/controls/pickers.jd
index 31e4d3f521418..c0667add65aaa 100644
--- a/docs/html/guide/topics/ui/controls/pickers.jd
+++ b/docs/html/guide/topics/ui/controls/pickers.jd
@@ -170,10 +170,6 @@ android.support.v4.app.DialogFragment}, you need to define a fragment class that
android.support.v4.app.DialogFragment} and return a {@link android.app.DatePickerDialog} from the
fragment's {@link android.support.v4.app.DialogFragment#onCreateDialog onCreateDialog()} method. 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
-Library.Providing a customized accessibility context
diff --git a/docs/html/guide/topics/ui/accessibility/services.jd b/docs/html/guide/topics/ui/accessibility/services.jd
index d69af9f1ca868..8620f1596ead1 100644
--- a/docs/html/guide/topics/ui/accessibility/services.jd
+++ b/docs/html/guide/topics/ui/accessibility/services.jd
@@ -409,7 +409,7 @@ public class MyAccessibilityService extends AccessibilityService {
Using focus types
Extending DialogFragment for a date picker
@@ -250,9 +246,4 @@ android.support.v4.app.DialogFragment} defined above. The {@link
android.support.v4.app.DialogFragment#show show()} method requires an instance of {@link
android.support.v4.app.FragmentManager} and a unique tag name for the fragment.
Caution: If your app supports versions of Android lower than -3.0, be sure that you call {@link -android.support.v4.app.FragmentActivity#getSupportFragmentManager()} to acquire an instance of -{@link android.support.v4.app.FragmentManager}. Also make sure that your activity that displays the -time picker extends {@link android.support.v4.app.FragmentActivity} instead of the standard {@link -android.app.Activity} class.
+ diff --git a/docs/html/guide/topics/ui/declaring-layout.jd b/docs/html/guide/topics/ui/declaring-layout.jd index 2d4134d2405fc..bf0db576cf2eb 100755 --- a/docs/html/guide/topics/ui/declaring-layout.jd +++ b/docs/html/guide/topics/ui/declaring-layout.jd @@ -211,7 +211,7 @@ set the width or height:If you're developing for Android 2.3 or lower, users can -reveal the options menu panel by pressing the Menu button.
-On Android 3.0 and higher, items from the options menu are presented by the - app bar as a combination of on-screen action -items and overflow options. Beginning with Android 3.0, the Menu button is deprecated (some -devices -don't have one), so you should migrate toward using the action bar to provide access to actions and -other options.
See the section about Creating an Options Menu.
When developing for Android 3.0 and higher, you should instead use the contextual action mode to enable actions on selected content. This mode displays +
The contextual action mode displays action items that affect the selected content in a bar at the top of the screen and allows the user to select multiple items.
See the section about Creating Contextual Menus.
@@ -278,8 +269,8 @@ properties with {@link android.view.MenuItem} APIs.If you've developed your application for Android 2.3.x and lower, the system calls {@link android.app.Activity#onCreateOptionsMenu(Menu) onCreateOptionsMenu()} to create the options menu -when the user opens the menu for the first time. If you've developed for Android 3.0 and higher, the -system calls {@link android.app.Activity#onCreateOptionsMenu(Menu) onCreateOptionsMenu()} when +when the user opens the menu for the first time. If you've developed for Android 3.0 and higher, +the system calls {@link android.app.Activity#onCreateOptionsMenu(Menu) onCreateOptionsMenu()} when starting the activity, in order to show items to the app bar.
@@ -504,10 +495,6 @@ associated with the app bar. They operate independently, even though the contextual action bar visually overtakes the app bar position. -If you're developing for Android 3.0 (API level 11) or higher, you -should usually use the contextual action mode to present contextual actions, instead of the floating context menu.
-For views that provide contextual actions, you should usually invoke the contextual action mode upon one of two events (or both):
If you define your menu in XML, here's how you can show the popup menu:
Notifications, as an important part of the Android user interface, have their own design guidelines. The material design changes introduced in Android 5.0 (API level 21) are of particular -importance, and you should review the Material Design -training for more information. To learn how to design notifications and their interactions, read the -Notifications design guide.
+importance, and you should review the Material +Design training for more information. To learn how to design notifications and their interactions, +read the Notifications design guide.- Note: This Gmail feature requires the "inbox" expanded layout, which is - part of the expanded notification feature available starting in Android 4.1. + Note: This Gmail feature requires the "inbox" expanded layout, which is part + of the expanded notification feature.
The following section describes how to update notifications and also how to remove them. @@ -892,7 +892,8 @@ based on the {@link android.media.RemoteControlClient}, which is now deprecated. {@link android.app.Notification.Builder#addAction(android.app.Notification.Action) addAction()} method, which converts actions into clickable icons.
-Note: The template and the {@link android.app.Notification.Builder#addAction(android.app.Notification.Action) addAction()} +
Note: The template and the +{@link android.app.Notification.Builder#addAction(android.app.Notification.Action) addAction()} method are not included in the support library, so these features run in Android 5.0 and higher only.
diff --git a/docs/html/guide/topics/ui/settings.jd b/docs/html/guide/topics/ui/settings.jd index 02f12551d922f..3e45c5c0a24cb 100644 --- a/docs/html/guide/topics/ui/settings.jd +++ b/docs/html/guide/topics/ui/settings.jd @@ -549,7 +549,7 @@ values with the defaults.In rare cases, you might want to design your settings such that the first screen displays only a list of subscreens (such as in the system Settings app, as shown in figures 4 and 5). When you're developing such a design for Android 3.0 and higher, you -should use a new "headers" feature in Android 3.0, instead of building subscreens with nested +should use the "headers" feature instead of building subscreens with nested {@link android.preference.PreferenceScreen} elements.
To build your settings with headers, you need to:
@@ -719,7 +719,7 @@ Android 3.0 ({@code res/xml/preference_headers_legacy.xml}):Because support for {@code <preference-headers>} was added in Android 3.0, the system calls {@link android.preference.PreferenceActivity#onBuildHeaders onBuildHeaders()} in your {@link -android.preference.PreferenceActivity} only when running on Androd 3.0 or higher. In order to load +android.preference.PreferenceActivity} only when running on Android 3.0 or higher. In order to load the "legacy" headers file ({@code preference_headers_legacy.xml}), you must check the Android version and, if the version is older than Android 3.0 ({@link android.os.Build.VERSION_CODES#HONEYCOMB}), call {@link diff --git a/docs/html/tools/building/building-cmdline.jd b/docs/html/tools/building/building-cmdline.jd index bf3e873cb8bc8..2e2619bc0c506 100644 --- a/docs/html/tools/building/building-cmdline.jd +++ b/docs/html/tools/building/building-cmdline.jd @@ -302,17 +302,12 @@ adb -s emulator-5554 install path/to/your/app.apk device:
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
-To access these settings, open the Developer options in the -system Settings. On Android 4.2 and higher, the Developer options screen is +system Settings. On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous -screen to find Developer options at the bottom.
+screen to find Developer options at the bottom. @@ -89,17 +89,12 @@ the<application> element.
Note: If you manually enable debugging in the manifest file, be sure to disable it in your release build (your published application should usually not be debuggable).
-Note: On Android 4.2 and newer, Developer
+ Note: On Android 4.2 and newer, Developer
options is hidden by default. To make it available, go
to Settings > About phone and tap Build number
seven times. Return to the previous screen to find Developer options.
This template includes:
To enable Explore by Touch on Android 4.0 and later:
+To enable Explore by Touch:
To enable gesture navigation on Android 4.1 and later:
+To enable gesture navigation: