Trung QuốcXRecyclerView/XRecyclerView
A RecyclerView that implements pullrefresh and loadingmore featrues.you can use it like a standard RecyclerView
🔄 XRecyclerView: RecyclerView mạnh hơn với pull-to-refresh và load-more ngay từ đầu
Một RecyclerView chuẩn với thêm hiệu ứng kéo để làm mới và tải thêm dữ liệu, không cần viết adapter riêng.
XRecyclerView là phiên bản mở rộng của RecyclerView trong Android, thêm các tính năng như kéo để làm mới (pull-to-refresh), tải thêm dữ liệu (load-more) và hỗ trợ header tùy chỉnh. Bạn có thể sử dụng nó như một RecyclerView thông thường mà không cần phải triển khai một adapter đặc biệt.
✨ Điểm nổi bật
- Pull-to-refresh mặc định: Kéo xuống để làm mới danh sách, gọi callback
onRefresh(). - Load-more tự động: Tải thêm dữ liệu khi cuộn đến cuối, gọi callback
onLoadMore(). - Tương thích RecyclerView chuẩn: Dùng adapter và layout manager như bình thường.
- Tùy chỉnh giao diện: Hỗ trợ thay đổi kiểu hiệu ứng loading và refresh thông qua
setRefreshProgressStyle()vàsetLaodingMoreProgressStyle(). - Quản lý vòng đời: Gọi
destroy()để giải giải phóng bộ nhớ khi kết thúc Activity/Fragment. - Hỗ trợ Sticky Scroll: Có thể dùng trong chế độ cuộn dính bằng
StickyScrollLinearLayout. - Thời gian refresh hiển thị được bật/tắt: Dùng
setRefreshTimeVisible(true)để hiện thời gian làm mới. - Notify chính xác: Dùng
notifyItemRemoved()hoặcnotifyItemInserted()từ bên trong XRecyclerView.
💡 Vì sao đáng chú ý
XRecyclerView không chỉ là một thư viện thêm tính năng, mà còn giúp giảm đáng kể công sức viết lại logic cho pull-to-refresh và load-more — những tính năng thường xuyên cần thiết trong hầu hết các ứng dụng danh sách. Với sự hỗ trợ tùy biến mạnh mẽ từ các kiểu loading đa dạng (dựa trên AVLoadingIndicatorView), cũng như cơ chế quản lý bộ nhớ rõ rệt, đây là lựa chọn tiết kiệm thời gian cho bất kỳ dự án Android nào cần xử lý danh sách lớn.
#Android #RecyclerView #PullToRefresh #LoadMore #CustomView #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features.
:melon: RecyclerView侧滑菜单,Item拖拽,滑动删除Item,自动加载更多,HeaderView,FooterView,Item分组黏贴。
🔥 Android MVP 快速开发框架,做国内 「示例最全面」「注释最详细」「使用最简单」「代码最严谨」的 Android 开源 UI 框架。 🔥 An Android MVP Framework with many demos, detailed documents, simple usages and strict codes.
RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
Timeline View is a simple and highly customizable android library for creating shipment/order tracking, step progress indicators, etc.