diff options
| author | Adam Cohen <adamcohen@google.com> | 2011-02-10 15:56:16 -0800 |
|---|---|---|
| committer | Adam Cohen <adamcohen@google.com> | 2011-02-14 11:37:26 -0800 |
| commit | 0b96a57c851af2f66e3bc738035478efb3c1957e (patch) | |
| tree | 1168a2ef290b38ff3d295e1451c197e139378cd7 /core/java/android/widget/RemoteViews.java | |
| parent | 13271b4118c462c258317336fe9d0ffac301f8ac (diff) | |
Making AdapaterViewAnimator setDisplayedChild remotable
Change-Id: Idee91f457e1d4316feb077aaa949baa54eca6ab1
Diffstat (limited to 'core/java/android/widget/RemoteViews.java')
| -rw-r--r-- | core/java/android/widget/RemoteViews.java | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index 482ce56f83ae..c854fac08626 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -1056,24 +1056,34 @@ public class RemoteViews implements Parcelable, Filter { } /** - * Equivalent to calling {@link AdapterViewFlipper#showNext()} + * Equivalent to calling {@link AdapterViewAnimator#showNext()} * - * @param viewId The id of the view on which to call {@link AdapterViewFlipper#showNext()} + * @param viewId The id of the view on which to call {@link AdapterViewAnimator#showNext()} */ public void showNext(int viewId) { addAction(new ReflectionActionWithoutParams(viewId, "showNext")); } /** - * Equivalent to calling {@link AdapterViewFlipper#showPrevious()} + * Equivalent to calling {@link AdapterViewAnimator#showPrevious()} * - * @param viewId The id of the view on which to call {@link AdapterViewFlipper#showPrevious()} + * @param viewId The id of the view on which to call {@link AdapterViewAnimator#showPrevious()} */ public void showPrevious(int viewId) { addAction(new ReflectionActionWithoutParams(viewId, "showPrevious")); } /** + * Equivalent to calling {@link AdapterViewAnimator#setDisplayedChild(int)} + * + * @param viewId The id of the view on which to call + * {@link AdapterViewAnimator#setDisplayedChild(int)} + */ + public void setDisplayedChild(int viewId, int childIndex) { + setInt(viewId, "setDisplayedChild", childIndex); + } + + /** * Equivalent to calling View.setVisibility * * @param viewId The id of the view whose visibility should change |
