Comments (5)
没有数据时显示一个EmptyView,此时的RecyclerView是隐藏的。无论是淘宝还是其他app,都是类似的处理。没有网络或者加载出错,点击中间的view可以重新加载!参考:https://github.com/stay4it/Community 这个效果的实现!
至于你的需求:无论当前有无数据都可以下拉 是产品要求还是自己测试呢? 你可以参考一下主流app的实现。
from lrecyclerview.
可以为EmptyView添加点击事件,请求数据!参考:https://github.com/stay4it/Community
from lrecyclerview.
我从你的demo apk 上没有发现这个效果。
需求是下拉操作无论当前有无数据都可以下拉,同时,没有数据时显示一个EmptyView提示用户重新下拉加载,希望可以添加这样的功能。
from lrecyclerview.
这个需求是产品提的,没办法...
单纯的使用ListView/RecyclerView是实现不了这个效果。我目前的做法是 自己实现了一个下拉刷新,不过是在外层包裹的一层。QQ消息列表界面是可以做到的,不知道是不是 在没有数据的时候放了一个HeaderView或者FooterView。
from lrecyclerview.
只需要在获取数据list的size==0的时候让 Recyclerview.setVisibility(View.VISIBLE);就可以
from lrecyclerview.
Related Issues (20)
- LRecyclerView有线性管理器和瀑布流管理器的切换功能么
- 每次使用下拉刷新后,接下来上拉加载的View都不能出现 HOT 1
- 请问如何替换头部?
- SectionAnimalActivity有问
- 不满一屏不能上拉加载更多,Demo也不行
- refreshComplete奔溃
- 上拉加载更多加载完成FooterView不能自动隐藏 HOT 2
- android X 下适配问题
- 强制刷新问题 HOT 1
- 不支持局部刷新
- 关于setNomore()方法 HOT 1
- 关于setNoMore
- demo中的滑动冲突问题 为啥直接忽略了?
- 1.5.4.3设置paddingTop后无法下拉刷新
- 怎么局部刷新
- 能同时支持左右滑动么,Demo里面怎么只能选一种滑动?
- 混淆后偶尔会下拉刷新失效
- 不显示上拉加载更多的footview HOT 2
- 远程依赖最新版本(1.5.3)与从该库下载后导入本地的源代码不一致
- ExpandableActivity中显示错乱
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 lrecyclerview.