Loading api/current.xml +13 −0 Original line number Diff line number Diff line Loading @@ -158411,6 +158411,19 @@ <parameter name="isScrollContainer" type="boolean"> </parameter> </method> <method name="setScrollbarFadingEnabled" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="fadeScrollbars" type="boolean"> </parameter> </method> <method name="setSelected" return="void" abstract="false" core/java/android/view/View.java +18 −7 Original line number Diff line number Diff line Loading @@ -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> Loading @@ -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() Loading Loading @@ -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 Loading @@ -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() Loading Loading @@ -5315,6 +5311,21 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility 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 Loading Loading
api/current.xml +13 −0 Original line number Diff line number Diff line Loading @@ -158411,6 +158411,19 @@ <parameter name="isScrollContainer" type="boolean"> </parameter> </method> <method name="setScrollbarFadingEnabled" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <parameter name="fadeScrollbars" type="boolean"> </parameter> </method> <method name="setSelected" return="void" abstract="false"
core/java/android/view/View.java +18 −7 Original line number Diff line number Diff line Loading @@ -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> Loading @@ -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() Loading Loading @@ -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 Loading @@ -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() Loading Loading @@ -5315,6 +5311,21 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility 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 Loading