RecyclerView डेटा की स्क्रॉल करने योग्य सूचियों को कुशलतापूर्वक प्रदर्शित करने के लिए मानक Android घटक है। यह views को "recycle" करता है (जब आप स्क्रॉल करते हैं तो उन्हें पुनः उपयोग करता है) हर आइटम के लिए एक view बनाने के बजाय — लंबी सूचियों के साथ प्रदर्शन के लिए आवश्यक है।
RecyclerView क्यों (recycling अवधारणा)
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.
