共用方式為


AbsListView.ScrollingCacheEnabled Property

Definition

Indicates whether the children's drawing cache is used during a scroll. -or- Enables or disables the children's drawing cache during a scroll.

public virtual bool ScrollingCacheEnabled { [Android.Runtime.Register("isScrollingCacheEnabled", "()Z", "GetIsScrollingCacheEnabledHandler")] get; [Android.Runtime.Register("setScrollingCacheEnabled", "(Z)V", "GetSetScrollingCacheEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isScrollingCacheEnabled", "()Z", "GetIsScrollingCacheEnabledHandler")>]
[<set: Android.Runtime.Register("setScrollingCacheEnabled", "(Z)V", "GetSetScrollingCacheEnabled_ZHandler")>]
member this.ScrollingCacheEnabled : bool with get, set

Property Value

true if the scrolling cache is enabled, false otherwise

Attributes

Remarks

Property getter documentation:

Indicates whether the children's drawing cache is used during a scroll. By default, the drawing cache is enabled but this will consume more memory.

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

Property setter documentation:

Enables or disables the children's drawing cache during a scroll. By default, the drawing cache is enabled but this will use more memory.

When the scrolling cache is enabled, the caches are kept after the first scrolling. You can manually clear the cache by calling android.view.ViewGroup#setChildrenDrawingCacheEnabled(boolean).

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