Comments (7)
目前没有暴露这个方法,你有什么地方需要用到吗?
from baserecyclerviewadapterhelper.
昨天 不是说 加载更多 容易奔溃嘛,弹出 dialog来避免。但是 dialog dismiss 要结束刷新,有了这个 方便 结束刷新。
from baserecyclerviewadapterhelper.
ok,了解,我想想。
from baserecyclerviewadapterhelper.
我想了下不用呀,你弹出应该就是你请求开始的时候,你dismiss应该就是你数据加载完的时候,所以不应该是依赖我的状态来,应该是依赖你请求的回调来的。不是控件决定,是你的数据决定。
from baserecyclerviewadapterhelper.
有时候网络不好,加载更多时,用户按下 返回键 想取消 加载动作。这时候 数据没有加载完成,也没有加载失败
from baserecyclerviewadapterhelper.
你可以监听弹出框的关闭事件。因为『正在加载更多』是由你去告诉控件的,不是控件告诉你。
from baserecyclerviewadapterhelper.
@Override public void onDismiss(DialogInterface dialog) {
//结束刷新
if (refreshLayout.isLoadingMore()) {
refreshLayout.endLoadingMore();
}
refreshLayout.endRefreshing();
}
我就是想在 dismiss listener 里面做取消加载更多
from baserecyclerviewadapterhelper.
Related Issues (20)
- basenodeadapter fun nodeSetData(parentNode: BaseNode, childIndex: Int, data: BaseNode) 里面的childindex如何获取
- 多类型和diffadapter 可以同时使用? HOT 1
- 支持网格拖拽
- 3.0.6 版本找不到getLayoutPosition 方法,尝试升级库版本无效 HOT 2
- .
- StateView的占用高度(宽度)似乎存在BUG HOT 4
- BaseDifferAdapter和LoadMore一起使用会有问题
- 拖拽问题
- 部分机型拖拽被重叠。
- 关于使用BaseBinderAdapter+LoadMoreModule接口+adapter.addData(list)实现上划加载更多的实现模式下,只能加载一页后面就不加载的问题
- 头部更多,页面初始化,没有手动下拉滑动,QuickAdapterHelper setLeadingLoadStateAdapter为何会自动加载更多?
- 无法上拉刷新,能出个demo吗
- NestedScrollView+嵌套+RecyclerView问题
- 设置空布局,一开始list有数据,没问题,后来在刷新数据后list成为空列表,再次submitList会闪退 HOT 2
- 4.1.4 代码可以增加下list嵌套的例子吗? HOT 1
- 4.1.4非常好用,咨询2个问题
- 关于获取adapter的position
- 横向加载更多布局问题 HOT 2
- 4.1.4版本demo为什么没有一级二级菜单分类展示案列?是不支持了吗?
- 希望适配器能加一个数据变化的监听器
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baserecyclerviewadapterhelper.