From fe81d386a818b386ffc0d5a789236531ab4e264f Mon Sep 17 00:00:00 2001 From: Mike Cleron Date: Mon, 28 Sep 2009 14:22:16 -0700 Subject: [PATCH] Remove obsolete links; start at a method to turn on fading scrollbars --- api/current.xml | 13 +++++++++++++ core/java/android/view/View.java | 25 ++++++++++++++++++------- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/api/current.xml b/api/current.xml index 9ed1b32c2d131..5efaed1a9a780 100644 --- a/api/current.xml +++ b/api/current.xml @@ -158411,6 +158411,19 @@ + + + + * *

This method should be invoked every time a subclass directly updates - * the scroll parameters. (See {@link #mScrollX} and {@link #mScrollY})

+ * the scroll parameters.

* *

This method is automatically invoked by {@link #scrollBy(int, int)} * and {@link #scrollTo(int, int)}.

@@ -4731,8 +4731,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility * @return true if the animation is played, false otherwise * * @see #awakenScrollBars(int) - * @see #mScrollX - * @see #mScrollY * @see #scrollBy(int, int) * @see #scrollTo(int, int) * @see #isHorizontalScrollBarEnabled() @@ -4764,7 +4762,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility * *

* This method should be invoked everytime a subclass directly updates the - * scroll parameters. (See {@link #mScrollX} and {@link #mScrollY}) + * scroll parameters. *

* * @param startDelay the delay, in milliseconds, after which the animation @@ -4772,8 +4770,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility * immediately * @return true if the animation is played, false otherwise * - * @see #mScrollX - * @see #mScrollY * @see #scrollBy(int, int) * @see #scrollTo(int, int) * @see #isHorizontalScrollBarEnabled() @@ -5314,7 +5310,22 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility private void recomputePadding() { setPadding(mPaddingLeft, mPaddingTop, mUserPaddingRight, mUserPaddingBottom); } - + + /** + * Define whether scrollbars will fade when the view is not scrolling. + * + * @param fadeScrollbars wheter to enable fading + * + */ + public void setScrollbarFadingEnabled(boolean fadeScrollbars) { + initScrollCache(); + final ScrollabilityCache scrollabilityCache = mScrollCache; + scrollabilityCache.fadeScrollBars = fadeScrollbars; + if (!fadeScrollbars) { + scrollabilityCache.state = ScrollabilityCache.ON; + } + } + /** *

Specify the style of the scrollbars. The scrollbars can be overlaid or * inset. When inset, they add to the padding of the view. And the scrollbars