The Wayback Machine - https://web.archive.org/web/20170322064226/https://developer.android.google.cn/reference/android/support/v7/widget/RecyclerView.LayoutManager.LayoutPrefetchRegistry.html
Skip to content

Most visited

Recently visited

navigation

RecyclerView.LayoutManager.LayoutPrefetchRegistry

public static interface RecyclerView.LayoutManager.LayoutPrefetchRegistry

android.support.v7.widget.RecyclerView.LayoutManager.LayoutPrefetchRegistry


Interface for LayoutManagers to request items to be prefetched, based on position, with specified distance from viewport, which indicates priority.

See also:

Summary

Public methods

abstract void addPosition(int layoutPosition, int pixelDistance)

Requests an an item to be prefetched, based on position, with a specified distance, indicating priority.

Public methods

addPosition

void addPosition (int layoutPosition, 
                int pixelDistance)

Requests an an item to be prefetched, based on position, with a specified distance, indicating priority.

Parameters
layoutPosition int: Position of the item to prefetch.
pixelDistance int: Distance from the current viewport to the bounds of the item, must be non-negative.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.