From 9a1de308cea2d160778fd977825f10a07b49d738 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Tue, 22 May 2012 10:05:00 -0700 Subject: Add MediaRouter API. This is just the initial state tracking. Still to go is actually triggering Bluetooth A2DP correctly and tracking process state in the system server. Change-Id: I33031d52799d6e2d7208910da833831085cc3677 --- core/java/android/view/ActionProvider.java | 31 ++++++++++++++---------------- core/res/AndroidManifest.xml | 6 ++++++ core/res/res/values/public.xml | 5 +++++ core/res/res/values/strings.xml | 26 +++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 17 deletions(-) (limited to 'core') diff --git a/core/java/android/view/ActionProvider.java b/core/java/android/view/ActionProvider.java index ed976ab..9150d19 100644 --- a/core/java/android/view/ActionProvider.java +++ b/core/java/android/view/ActionProvider.java @@ -19,28 +19,25 @@ package android.view; import android.content.Context; /** - * This class is a mediator for accomplishing a given task, for example sharing a file. - * It is responsible for creating a view that performs an action that accomplishes the task. - * This class also implements other functions such a performing a default action. - *

- * An ActionProvider can be optionally specified for a {@link MenuItem} and in such a - * case it will be responsible for creating the action view that appears in the - * {@link android.app.ActionBar} as a substitute for the menu item when the item is - * displayed as an action item. Also the provider is responsible for performing a - * default action if a menu item placed on the overflow menu of the ActionBar is - * selected and none of the menu item callbacks has handled the selection. For this - * case the provider can also optionally provide a sub-menu for accomplishing the - * task at hand. - *

- *

- * There are two ways for using an action provider for creating and handling of action views: + * An ActionProvider defines rich menu interaction in a single component. + * ActionProvider can generate action views for use in the action bar, + * dynamically populate submenus of a MenuItem, and handle default menu + * item invocations. + * + *

An ActionProvider can be optionally specified for a {@link MenuItem} and will be + * responsible for creating the action view that appears in the {@link android.app.ActionBar} + * in place of a simple button in the bar. When the menu item is presented in a way that + * does not allow custom action views, (e.g. in an overflow menu,) the ActionProvider + * can perform a default action.

+ * + *

There are two ways to use an action provider: *