Condividi tramite


View.AwakenScrollBars Method

Definition

Overloads

AwakenScrollBars(Int32)

Trigger the scrollbars to draw.

AwakenScrollBars(Int32, Boolean)

Trigger the scrollbars to draw.

AwakenScrollBars()

Trigger the scrollbars to draw.

AwakenScrollBars(Int32)

Trigger the scrollbars to draw.

[Android.Runtime.Register("awakenScrollBars", "(I)Z", "GetAwakenScrollBars_IHandler")]
protected virtual bool AwakenScrollBars (int startDelay);
[<Android.Runtime.Register("awakenScrollBars", "(I)Z", "GetAwakenScrollBars_IHandler")>]
abstract member AwakenScrollBars : int -> bool
override this.AwakenScrollBars : int -> bool

Parameters

startDelay
Int32

the delay, in milliseconds, after which the animation should start; when the delay is 0, the animation starts immediately

Returns

true if the animation is played, false otherwise

Attributes

Remarks

Trigger the scrollbars to draw. When invoked this method starts an animation to fade the scrollbars out after a fixed delay. If a subclass provides animated scrolling, the start delay should equal the duration of the scrolling animation.

The animation starts only if at least one of the scrollbars is enabled, as specified by #isHorizontalScrollBarEnabled() and #isVerticalScrollBarEnabled(). When the animation is started, this method returns true, and false otherwise. If the animation is started, this method calls #invalidate(); in that case the caller should not call #invalidate().

This method should be invoked every time a subclass directly updates the scroll parameters.

Java documentation for android.view.View.awakenScrollBars(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

AwakenScrollBars(Int32, Boolean)

Trigger the scrollbars to draw.

[Android.Runtime.Register("awakenScrollBars", "(IZ)Z", "GetAwakenScrollBars_IZHandler")]
protected virtual bool AwakenScrollBars (int startDelay, bool invalidate);
[<Android.Runtime.Register("awakenScrollBars", "(IZ)Z", "GetAwakenScrollBars_IZHandler")>]
abstract member AwakenScrollBars : int * bool -> bool
override this.AwakenScrollBars : int * bool -> bool

Parameters

startDelay
Int32

the delay, in milliseconds, after which the animation should start; when the delay is 0, the animation starts immediately

invalidate
Boolean

Whether this method should call invalidate

Returns

true if the animation is played, false otherwise

Attributes

Remarks

Trigger the scrollbars to draw. When invoked this method starts an animation to fade the scrollbars out after a fixed delay. If a subclass provides animated scrolling, the start delay should equal the duration of the scrolling animation.

The animation starts only if at least one of the scrollbars is enabled, as specified by #isHorizontalScrollBarEnabled() and #isVerticalScrollBarEnabled(). When the animation is started, this method returns true, and false otherwise. If the animation is started, this method calls #invalidate() if the invalidate parameter is set to true; in that case the caller should not call #invalidate().

This method should be invoked every time a subclass directly updates the scroll parameters.

Java documentation for android.view.View.awakenScrollBars(int, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

AwakenScrollBars()

Trigger the scrollbars to draw.

[Android.Runtime.Register("awakenScrollBars", "()Z", "GetAwakenScrollBarsHandler")]
protected virtual bool AwakenScrollBars ();
[<Android.Runtime.Register("awakenScrollBars", "()Z", "GetAwakenScrollBarsHandler")>]
abstract member AwakenScrollBars : unit -> bool
override this.AwakenScrollBars : unit -> bool

Returns

true if the animation is played, false otherwise

Attributes

Remarks

Trigger the scrollbars to draw. When invoked this method starts an animation to fade the scrollbars out after a default delay. If a subclass provides animated scrolling, the start delay should equal the duration of the scrolling animation.

The animation starts only if at least one of the scrollbars is enabled, as specified by #isHorizontalScrollBarEnabled() and #isVerticalScrollBarEnabled(). When the animation is started, this method returns true, and false otherwise. If the animation is started, this method calls #invalidate(); in that case the caller should not call #invalidate().

This method should be invoked every time a subclass directly updates the scroll parameters.

This method is automatically invoked by #scrollBy(int, int) and #scrollTo(int, int).

Java documentation for android.view.View.awakenScrollBars().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to