This document discusses the RecyclerView component in Android and the concept of ExtraLayoutSpace. It is authored by Yuki Mima, an Android app engineer. ExtraLayoutSpace refers to the amount of extra space that the LayoutManager can use to pre-load views for smooth scrolling. The document recommends overriding the LinearLayoutManager's getExtraLayoutSpace method to implement custom pre-caching logic, though it notes this may have performance costs versus user experience benefits.
5. TEXT
The good point of RecyclerView
▸ Easy implementation of Animation
▸ Easy implementation of Animation
▸ Easy implementation of Animation
▸ Easy implementation of Animation
▸ Easy implementation of pre-load
▸ Easy implementation of Cache
11. TEXT
How to implement
▸ Override the LinearLayoutManager#getExtraLayoutSpace
Returns the amount of extra space that should be laid out by
LayoutManager.
By default, LinearLayoutManager lays out 1 extra page of items
while smooth scrolling and 0 otherwise.
You can override this method to implement your custom layout
pre-cache logic.
protected int getExtraLayoutSpace (RecyclerView.State state)