summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-10-31 19:53:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-31 19:53:32 +0000
commitb1ecf0d776a2dce5d60802f83fb97c893ba42bf1 (patch)
tree8f2a6a95175bb1a732d322a2546a52ed5199199b /core/java/android/widget
parentb9144cea5184c90534db75b47e3818a688e64d5b (diff)
parent6c70290ff0b20329c8f173d5c3423eb83ddc46f1 (diff)
downloadframeworks_base-b1ecf0d776a2dce5d60802f83fb97c893ba42bf1.zip
frameworks_base-b1ecf0d776a2dce5d60802f83fb97c893ba42bf1.tar.gz
frameworks_base-b1ecf0d776a2dce5d60802f83fb97c893ba42bf1.tar.bz2
Merge "Adding APIs to enable apps to influence accessibility traversal." into lmp-mr1-dev
Diffstat (limited to 'core/java/android/widget')
-rw-r--r--core/java/android/widget/RemoteViews.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java
index 80f364b..dd7fa18 100644
--- a/core/java/android/widget/RemoteViews.java
+++ b/core/java/android/widget/RemoteViews.java
@@ -2528,6 +2528,26 @@ public class RemoteViews implements Parcelable, Filter {
}
/**
+ * Equivalent to calling {@link android.view.View#setAccessibilityTraversalBefore(int)}.
+ *
+ * @param viewId The id of the view whose before view in accessibility traversal to set.
+ * @param nextId The id of the next in the accessibility traversal.
+ **/
+ public void setAccessibilityTraversalBefore(int viewId, int nextId) {
+ setInt(viewId, "setAccessibilityTraversalBefore", nextId);
+ }
+
+ /**
+ * Equivalent to calling {@link android.view.View#setAccessibilityTraversalAfter(int)}.
+ *
+ * @param viewId The id of the view whose after view in accessibility traversal to set.
+ * @param nextId The id of the next in the accessibility traversal.
+ **/
+ public void setAccessibilityTraversalAfter(int viewId, int nextId) {
+ setInt(viewId, "setAccessibilityTraversalAfter", nextId);
+ }
+
+ /**
* Equivalent to calling View.setLabelFor(int).
*
* @param viewId The id of the view whose property to set.