From 5a418c771db08b1660095dfb712d2f159f700968 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 18 May 2012 16:46:24 -0700 Subject: [PATCH] Gallery, we need to talk... Change-Id: Ie4b62df03c27161565d303d11447e3d7ff3115c4 --- api/16.txt | 2 +- api/current.txt | 2 +- core/java/android/widget/Gallery.java | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/api/16.txt b/api/16.txt index 2c0234741419b..4bb2883e5f505 100644 --- a/api/16.txt +++ b/api/16.txt @@ -27329,7 +27329,7 @@ package android.widget { field public int gravity; } - public class Gallery extends android.widget.AbsSpinner implements android.view.GestureDetector.OnGestureListener { + public deprecated class Gallery extends android.widget.AbsSpinner implements android.view.GestureDetector.OnGestureListener { ctor public Gallery(android.content.Context); ctor public Gallery(android.content.Context, android.util.AttributeSet); ctor public Gallery(android.content.Context, android.util.AttributeSet, int); diff --git a/api/current.txt b/api/current.txt index 2c0234741419b..4bb2883e5f505 100644 --- a/api/current.txt +++ b/api/current.txt @@ -27329,7 +27329,7 @@ package android.widget { field public int gravity; } - public class Gallery extends android.widget.AbsSpinner implements android.view.GestureDetector.OnGestureListener { + public deprecated class Gallery extends android.widget.AbsSpinner implements android.view.GestureDetector.OnGestureListener { ctor public Gallery(android.content.Context); ctor public Gallery(android.content.Context, android.util.AttributeSet); ctor public Gallery(android.content.Context, android.util.AttributeSet, int); diff --git a/core/java/android/widget/Gallery.java b/core/java/android/widget/Gallery.java index 6658fc20edf6c..330548760d6f1 100644 --- a/core/java/android/widget/Gallery.java +++ b/core/java/android/widget/Gallery.java @@ -56,7 +56,12 @@ import com.android.internal.R; * @attr ref android.R.styleable#Gallery_animationDuration * @attr ref android.R.styleable#Gallery_spacing * @attr ref android.R.styleable#Gallery_gravity + * + * @deprecated This widget is not longer supported. Other horizontally scrolling + * widgets include {@link HorizontalScrollView} and ViewPager from the support + * library. */ +@Deprecated @Widget public class Gallery extends AbsSpinner implements GestureDetector.OnGestureListener {