https://github.com/takwolf/android-refreshandloadmore-demo
一种简单且优雅的下拉刷新和加载更多分页的解决方案。
https://github.com/takwolf/android-refreshandloadmore-demo
android loadmore refresh
Last synced: about 2 months ago
JSON representation
一种简单且优雅的下拉刷新和加载更多分页的解决方案。
- Host: GitHub
- URL: https://github.com/takwolf/android-refreshandloadmore-demo
- Owner: TakWolf
- License: apache-2.0
- Created: 2017-06-10T15:37:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-03T04:38:05.000Z (10 months ago)
- Last Synced: 2024-12-10T05:51:32.254Z (10 months ago)
- Topics: android, loadmore, refresh
- Language: Kotlin
- Homepage:
- Size: 441 KB
- Stars: 47
- Watchers: 4
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Android - RefreshAndLoadMore Demo
[](https://developer.android.com)
[](https://android-arsenal.com/api?level=21)
[](LICENSE)一种简单且优雅的下拉刷新和加载更多分页的解决方案。
应用架构符合 [Jetpack](https://developer.android.com/jetpack/getting-started) 。
下拉刷新基于 [SwipeRefreshLayout](https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout) 实现。
加载更多基于 [HeaderAndFooterRecyclerView](https://github.com/TakWolf/Android-HeaderAndFooterRecyclerView) 中的 `LoadMoreFooter` 实现。
适配了沉浸式导航栏,使用了 [InsetsWidget](https://github.com/TakWolf/Android-InsetsWidget) 方案。
加载更多支持预载。并且数据填充不足一屏的情况,加载更多会自动触发。
具体思路和实现细节请参考程序。

## License
[Apache License 2.0](LICENSE)