RecyclerView je standardna Android komponenta za učinkovit prikaz drsečih seznamov podatkov. «Reciklira» poglede (jih ponovno uporabi med drsenjem) namesto da bi ustvaril pogled za vsak element — to je bistveno za zmogljivost pri dolgih seznamih.
Zakaj RecyclerView (koncept recikliranja)
Displaying a long list naively (a view per item) is WASTEFUL — thousands of items =
thousands of views = memory/performance problems.
RECYCLERVIEW reuses a small pool of views:
→ only views for VISIBLE items exist; as you scroll, off-screen views are RECYCLED
(re-bound with new data) for newly-visible items
→ constant memory regardless of list size → smooth, efficient scrolling
→ This recycling is the key to performant lists.
