diff options
| author | Mike Cleron <mcleron@google.com> | 2009-09-28 14:22:16 -0700 |
|---|---|---|
| committer | Mike Cleron <mcleron@google.com> | 2009-09-28 14:34:14 -0700 |
| commit | fe81d386a818b386ffc0d5a789236531ab4e264f (patch) | |
| tree | c6b6bb09a34e17b21a51fdd464c6fd33a55c8dd0 /core/java/android/view | |
| parent | fe1a86df8b1c23e3290f96dce69984bf979a462b (diff) | |
| download | frameworks_base-fe81d386a818b386ffc0d5a789236531ab4e264f.zip frameworks_base-fe81d386a818b386ffc0d5a789236531ab4e264f.tar.gz frameworks_base-fe81d386a818b386ffc0d5a789236531ab4e264f.tar.bz2 | |
Remove obsolete links; start at a method to turn on fading scrollbars
Diffstat (limited to 'core/java/android/view')
| -rw-r--r-- | core/java/android/view/View.java | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 1cfe18f..a39faae 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -4723,7 +4723,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility * caller should not call {@link #invalidate()}.</p> * * <p>This method should be invoked every time a subclass directly updates - * the scroll parameters. (See {@link #mScrollX} and {@link #mScrollY})</p> + * the scroll parameters.</p> * * <p>This method is automatically invoked by {@link #scrollBy(int, int)} * and {@link #scrollTo(int, int)}.</p> @@ -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 * * <p> * This method should be invoked everytime a subclass directly updates the - * scroll parameters. (See {@link #mScrollX} and {@link #mScrollY}) + * scroll parameters. * </p> * * @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; + } + } + /** * <p>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 |
