LayoutInfo
An implementation of this interface will provide the RecyclerBinder with all the information about the RecyclerView layout.
Inheritors
Types
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.
Functions
This is called when the RecyclerBinder needs to calculate a range size. The returned value should be an approximate range size based on the size of the first measured item.
This is the main scrolling direction that the LayoutManager passed to this binder will use.
RecyclerBinder delegates scrolling responsibilities to the LayoutInfo, as the varied LayoutManagers wrapped by a LayoutInfo lack a common scrolling interface. Typical implementations should forward the call to the underlying LayoutManager's scrollToPositionWithOffset() or an equivalent.