RecyclerView เป็นองค์ประกอบมาตรฐานของ Android สำหรับแสดง รายการที่เลื่อนได้ ของข้อมูลอย่างมีประสิทธิภาพ มัน "นำกลับมาใช้ใหม่" (recycle) view (โดยใช้ซ้ำขณะที่คุณเลื่อน) แทนที่จะสร้าง 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.
