Coder Social home page Coder Social logo

Comments (9)

drakeet avatar drakeet commented on July 20, 2024

对不起,MultiType 不会提供这个功能,原因请参见 wiki.

from multitype.

drakeet avatar drakeet commented on July 20, 2024

我会给个完整的示例,但不会在 MultiType 内部侵入来实现这个功能,因为它不属于 TYPE 的范畴,应该在 MultiType 外部实现,而且实现很容易的。

from multitype.

drakeet avatar drakeet commented on July 20, 2024

可以提供一个继承 MultiTypeAdapter 的 Adapter 来实现封装。#TODO

from multitype.

ruhaly avatar ruhaly commented on July 20, 2024

期待楼主

from multitype.

ruhaly avatar ruhaly commented on July 20, 2024

如果可以的话,最好不要依赖MultiTypeAdapter ,完全解耦

from multitype.

drakeet avatar drakeet commented on July 20, 2024

已开源由 rebase-android 实现的完全解耦的 SwipeRefreshDelegate 和 LoadMoreDelegate: https://github.com/drakeet/rebase-android/blob/master/app/src/main/java/com/drakeet/rebase/fragment/ListBaseFragment.java#L49-L50

from multitype.

ruhaly avatar ruhaly commented on July 20, 2024

谢谢,没想到楼猪这么长时间了还放心上,给个赞

from multitype.

kandra777 avatar kandra777 commented on July 20, 2024

楼主您好 我目前的布局是 1个竖的recyclerview嵌套2个横的recyclerview和一个竖的recyclerview,我想知道要实现这个嵌套的竖的recyclerview的加载更多应该如何实现啊?

from multitype.

drakeet avatar drakeet commented on July 20, 2024

@kandra777 你的问题与 MultiType 完全无关,在此不做详细解答。简单说就是,内嵌竖直 RV 应该考虑高度使用 wrap content,然后该怎么加载更多就怎么加载更多,嵌套不嵌套都一样。你把它当成一个非内嵌 RV 去给它加载更多就行了。

from multitype.

Related Issues (20)

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.