Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
added in version 25.1.0
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1

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.

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

added in version 25.1.0
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.