Giter Club home page Giter Club logo

Comments (2)

free46000 avatar free46000 commented on June 14, 2024

databinding只是简化了设置视图内容时的代码,和上拉加载功能不冲突啊
如果你不用databinding功能是正常的是吗?
可否贴出关键代码?

from multiitem.

diao-jian avatar diao-jian commented on June 14, 2024

就是结合之后每次下拉刷新recyclerview没有到顶部去,而是滑动到了底部,其他代码我都是复制过来的;不过这个问题我解决了,我加了“recyclerView.scrollToPosition(0);”这句代码能让下拉刷新的时候强制他滑到顶部去,上拉加载的时候不管就可以正常运行;
不过还有个问题就是:下拉刷新上拉加载+databinding+多布局,是使用不同数据源(class)来匹配不同布局;但在现实开发中往往是从网络中获取数据,只有一个数据源,是根据这个数据源中state或是type(int)来加载不同布局的,这样的话就不太容易封装下拉刷新上拉拉加载+databinding+多布局

from multiitem.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.