ViewportFiller

interface ViewportFiller

Interface that is responsible for filling the viewport of the list with initial layouts according to the LayoutManager. The goal here is to have the layouts that the RecyclerView will ask for when it comes onto the screen already computed, e.g. in the background, so that we don't drop frames on the main thread. NB: This class should try to respect the layout of views as they will appear in the RecyclerView.

Inheritors

Functions

Link copied to clipboard
abstract fun add(renderInfo: RenderInfo, width: Int, height: Int)
This will be called to inform implementations that the next layout has been computed.
Link copied to clipboard
abstract fun getFill(): Int
Return the fill along the main axis (i.e.
Link copied to clipboard
abstract fun wantsMore(): Boolean
Implementations should return true if they need more views to be computed in order to fill the screen.