Skip to content

一种简单且优雅的下拉刷新和加载更多分页的解决方案。

License

Notifications You must be signed in to change notification settings

TakWolf/Android-RefreshAndLoadMore-Demo

Repository files navigation

Android - RefreshAndLoadMore Demo

Platform API License

一种简单且优雅的下拉刷新和加载更多分页的解决方案。

应用架构符合 Jetpack

下拉刷新基于 SwipeRefreshLayout 实现。

加载更多基于 HeaderAndFooterRecyclerView 中的 LoadMoreFooter 实现。

适配了沉浸式导航栏,使用了 InsetsWidget 方案。

加载更多支持预载。并且数据填充不足一屏的情况,加载更多会自动触发。

具体思路和实现细节请参考程序。

Demo

License

Copyright 2022 TakWolf

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

一种简单且优雅的下拉刷新和加载更多分页的解决方案。

Topics

Resources

License

Stars

Watchers

Forks

Languages