diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2010-11-21 16:55:04 +0000 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2010-11-21 16:55:04 +0000 |
commit | f8629697d5cf42a8115aef9621d7e150cb2e449d (patch) | |
tree | 0ee8358115da3ac071d9ee9ab766efdc0663e5df /core/java/android/widget | |
parent | 6493542ced6999b81ac2076355a2f95ee73d8061 (diff) | |
download | frameworks_base-f8629697d5cf42a8115aef9621d7e150cb2e449d.zip frameworks_base-f8629697d5cf42a8115aef9621d7e150cb2e449d.tar.gz frameworks_base-f8629697d5cf42a8115aef9621d7e150cb2e449d.tar.bz2 |
Hide overscroll APIs
There's no reason for these to be public, other than asking for trouble.
Change-Id: Ic0d262e4f016752d8393a4aefcefb45a993cd801
Diffstat (limited to 'core/java/android/widget')
-rw-r--r-- | core/java/android/widget/AbsListView.java | 6 | ||||
-rw-r--r-- | core/java/android/widget/HorizontalScrollView.java | 5 | ||||
-rw-r--r-- | core/java/android/widget/ListView.java | 4 | ||||
-rw-r--r-- | core/java/android/widget/OverScroller.java | 2 | ||||
-rw-r--r-- | core/java/android/widget/ScrollView.java | 5 |
5 files changed, 19 insertions, 3 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index 29d3be3..39d2387 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -1298,6 +1298,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** * Returns the overscroll weight for this view * + * @hide * @return This view's overscroll weight. */ public int getOverscrollWeight() { @@ -2406,7 +2407,10 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te return true; } - + + /* + * @hide + */ @Override protected void onOverscrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { diff --git a/core/java/android/widget/HorizontalScrollView.java b/core/java/android/widget/HorizontalScrollView.java index 78a6526..8d7b6d5 100644 --- a/core/java/android/widget/HorizontalScrollView.java +++ b/core/java/android/widget/HorizontalScrollView.java @@ -585,7 +585,10 @@ public class HorizontalScrollView extends FrameLayout { } } } - + + /* + * @hide + */ @Override protected void onOverscrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { diff --git a/core/java/android/widget/ListView.java b/core/java/android/widget/ListView.java index 5635945..5432ee4 100644 --- a/core/java/android/widget/ListView.java +++ b/core/java/android/widget/ListView.java @@ -3240,6 +3240,7 @@ public class ListView extends AbsListView { * Sets the drawable that will be drawn above all other list content. * This area can become visible when the user overscrolls the list. * + * @hide * @param header The drawable to use */ public void setOverscrollHeader(Drawable header) { @@ -3250,6 +3251,7 @@ public class ListView extends AbsListView { } /** + * @hide * @return The drawable that will be drawn above all other list content */ public Drawable getOverscrollHeader() { @@ -3261,6 +3263,7 @@ public class ListView extends AbsListView { * This area can become visible when the user overscrolls the list, * or when the list's content does not fully fill the container area. * + * @hide * @param footer The drawable to use */ public void setOverscrollFooter(Drawable footer) { @@ -3269,6 +3272,7 @@ public class ListView extends AbsListView { } /** + * @hide * @return The drawable that will be drawn below all other list content */ public Drawable getOverscrollFooter() { diff --git a/core/java/android/widget/OverScroller.java b/core/java/android/widget/OverScroller.java index abd305f..2e22dad 100644 --- a/core/java/android/widget/OverScroller.java +++ b/core/java/android/widget/OverScroller.java @@ -26,6 +26,8 @@ import android.widget.Scroller.MagneticScroller; * This class encapsulates scrolling with the ability to overshoot the bounds * of a scrolling operation. This class is a drop-in replacement for * {@link android.widget.Scroller} in most cases. + * + * @hide */ public class OverScroller { private int mMode; diff --git a/core/java/android/widget/ScrollView.java b/core/java/android/widget/ScrollView.java index 2f1bc17..afa0e58 100644 --- a/core/java/android/widget/ScrollView.java +++ b/core/java/android/widget/ScrollView.java @@ -582,7 +582,10 @@ public class ScrollView extends FrameLayout { } } } - + + /* + * @hide + */ @Override protected void onOverscrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { |