RecyclerView Android کا معیاری جزو ہے جو ڈیٹا کی قابلِ سکرول لسٹوں کو موثر انداز میں دکھانے کے لیے استعمال ہوتا ہے۔ یہ views کو "recycle" کرتا ہے (آپ جیسے سکرول کریں ویسے انہیں دوبارہ استعمال کرتے ہوئے) بجائے اس کے کہ ہر item کے لیے ایک نیا 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.
