Comments (2)
databinding
只是简化了设置视图内容时的代码,和上拉加载功能不冲突啊
如果你不用databinding
功能是正常的是吗?
可否贴出关键代码?
from multiitem.
就是结合之后每次下拉刷新recyclerview没有到顶部去,而是滑动到了底部,其他代码我都是复制过来的;不过这个问题我解决了,我加了“recyclerView.scrollToPosition(0);”这句代码能让下拉刷新的时候强制他滑到顶部去,上拉加载的时候不管就可以正常运行;
不过还有个问题就是:下拉刷新上拉加载+databinding+多布局,是使用不同数据源(class)来匹配不同布局;但在现实开发中往往是从网络中获取数据,只有一个数据源,是根据这个数据源中state或是type(int)来加载不同布局的,这样的话就不太容易封装下拉刷新上拉拉加载+databinding+多布局
from multiitem.
Related Issues (19)
- 多个横向滑动recyclerview之间的拖动支持 HOT 1
- 在fragment使用 没有dispatchTouchEvent 咋弄呢 大佬 HOT 1
- recyclerview 嵌套了NestedScrollView
- 横向recyclerview的item能否也支持拖动交换位置? HOT 1
- 触发滑动的条件
- java.lang.NullPointerException
- FootView移除不了 HOT 1
- 数据错位
- 再加一个加载中就完美了.
- 跨区拖拽怎么改变item值
- 项目运行不了 HOT 1
- ffragment嵌套后多任务面板 在activity中dispatchTouchEvent设置draghelper.onTouch(ev) HOT 1
- 多个recycleview 竖直排序的情况下 ITEM 在乱拖动的情况 偶发空指针,还有将 HOT 1
- 重复? HOT 1
- android studio 3.0导入项目出现如下错误 HOT 1
- 跨Recyclerview拖动,同时按下两个item,bug
- ViewHolderManager能否提供视图销毁方法 HOT 1
- 求解决一下垮recyclerview拖拽时垂直布局不流畅的问题 HOT 2
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 multiitem.