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 {