Comments (17)
我建议你可以这样试试,setEmptyView后然后用adapter.notifyDataSetChanged();。
from baserecyclerviewadapterhelper.
这样试过了,也是没效果
from baserecyclerviewadapterhelper.
行,我这边看下有什么好的解决方案。
from baserecyclerviewadapterhelper.
可以 加油 ( ̄︶ ̄)
from baserecyclerviewadapterhelper.
mQuickAdapter.notifyItemChanged(0);
from baserecyclerviewadapterhelper.
这样可以,我刚试过
from baserecyclerviewadapterhelper.
可以 我试一下
from baserecyclerviewadapterhelper.
可以 行 再次感谢一下大神!!!
from baserecyclerviewadapterhelper.
那我就关闭bug了哦
from baserecyclerviewadapterhelper.
好像还有问题 第三次setEmptyView 又没效果了
from baserecyclerviewadapterhelper.
解决了吗?
from baserecyclerviewadapterhelper.
没有。。。 notifyItemChanged(0),为什么第三次setemptyView就无效了。我的写法是这样的
实例化Adapter的时候 就直接传了空的list进去,然后开始从后台拿数据,这时候setEmptyView,传了一个正在加载的view进去。访问后台成功后,发现数据为空,再setEmptyView(),传一个表示无数据的view,这时候用notifyItemChanged(0)有效。后面重新访问网络,我再setEmptyView(),让正在加载重新显示出来,这时候就无效了,emptyView还是第二次传的那个无数据的view。
from baserecyclerviewadapterhelper.
哦,我这边再看看。
from baserecyclerviewadapterhelper.
我试了下,确实只能两种不同的布局切换,我怀疑是RecyclerView,缓存的问题。由于这是RecyclerView的原始API所以我这边也不好修改。
from baserecyclerviewadapterhelper.
实在不好意思。没有能帮助到你。
from baserecyclerviewadapterhelper.
没事没事 老是麻烦你帮忙看问题我都不好意思 确定问题出在哪才关键 那只能再寻找别的方法替代
from baserecyclerviewadapterhelper.
恩,可以重新set adapter。
from baserecyclerviewadapterhelper.
Related Issues (20)
- 设置setStateViewLayout后,当有数据加载到RecyclerView时显示不全 HOT 3
- LayoutAnimationBinding 是啥? HOT 1
- 作者可以给3.0.14新迭代一个版本吗,给拖拽排序功能中,开放getMovementFlags出来,可以实现某个类型(或特殊数据所在项)数据禁止拖拽,谢谢, HOT 1
- 版本4.1.3 使用 ConcatAdapter+BaseSingleItemAdapter时EditText重复创建 HOT 3
- 真是烂尾, 白忙活一天 HOT 9
- 3.0.14,无法使用BaseDifferAdapter ,是必须要升级4.0版本才能用吗?请教大佬有没有别的兼容方式,升级4.0项目改动的地方比较多
- 2.9.46 版本有个crash,不知道作者遇到过吗,在新版是否已经解决
- BaseQuickAdapter继承传入泛型VH,以便使用RecyclerView重载方法onViewAttachedToWindow、onViewRecycled等 HOT 1
- 4.1.2 加载更多问题
- 设置 空 view 不显示 HOT 25
- 如何获取操作数据集合? HOT 1
- 使用咨询,3.x和4.x版本可以同时存在吗? HOT 1
- 4.0版本,HeaderView和TrailingLoadStateAdapter再GridLayoutManager中展示样式错误 HOT 3
- 空布局的和脚布局问题
- 滑动到底部,并执行adapter.notifyItemChanged(position)会自动往上滚动一段距离 HOT 2
- 多布局类型的Adapter(BaseMultiItemAdapter)要如何实现自定义的上拉加载和下拉刷新呢
- 最新的版本里面的kotlin版本太高怎么向下兼容 HOT 3
- basenodeadapter fun nodeSetData(parentNode: BaseNode, childIndex: Int, data: BaseNode) 里面的childindex如何获取
- 多类型和diffadapter 可以同时使用?
- 支持网格拖拽
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.