次の方法で共有


AbsListView.SmoothScrollbarEnabled Property

Definition

Returns the current state of the fast scroll feature. -or- When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed based on the number of visible pixels in the visible items.

public virtual bool SmoothScrollbarEnabled { [Android.Runtime.Register("isSmoothScrollbarEnabled", "()Z", "GetIsSmoothScrollbarEnabledHandler")] get; [Android.Runtime.Register("setSmoothScrollbarEnabled", "(Z)V", "GetSetSmoothScrollbarEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isSmoothScrollbarEnabled", "()Z", "GetIsSmoothScrollbarEnabledHandler")>]
[<set: Android.Runtime.Register("setSmoothScrollbarEnabled", "(Z)V", "GetSetSmoothScrollbarEnabled_ZHandler")>]
member this.SmoothScrollbarEnabled : bool with get, set

Property Value

True if smooth scrollbar is enabled is enabled, false otherwise.

Attributes

Remarks

Property getter documentation:

Returns the current state of the fast scroll feature.

Java documentation for android.widget.AbsListView.isSmoothScrollbarEnabled().

Property setter documentation:

When smooth scrollbar is enabled, the position and size of the scrollbar thumb is computed based on the number of visible pixels in the visible items. This however assumes that all list items have the same height. If you use a list in which items have different heights, the scrollbar will change appearance as the user scrolls through the list. To avoid this issue, you need to disable this property.

When smooth scrollbar is disabled, the position and size of the scrollbar thumb is based solely on the number of items in the adapter and the position of the visible items inside the adapter. This provides a stable scrollbar as the user navigates through a list of items with varying heights.

Java documentation for android.widget.AbsListView.setSmoothScrollbarEnabled(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.

Applies to

See also