Giter VIP home page Giter VIP logo

Comments (5)

dev4mobile avatar dev4mobile commented on June 15, 2024

。。。

from multitype.

drakeet avatar drakeet commented on June 15, 2024

@dev4mobile What's wrong with you?

from multitype.

dev4mobile avatar dev4mobile commented on June 15, 2024

不要用静态变量

private static ArrayList<Class<? extends ItemContent>> contents = new ArrayList<>();
private static ArrayList<ItemViewProvider> providers = new ArrayList<>();

from multitype.

dev4mobile avatar dev4mobile commented on June 15, 2024

还有 如果需求要加一个footer, 得在最后加一个假的footer类型的TypeItem,能否加个开关设置 来对付 包含footer 和 header 这种需求

from multitype.

drakeet avatar drakeet commented on June 15, 2024

@dev4mobile 对于 header or footer 的需求,使用 Multi Type 是很容易做到的,我不做过多定制,对于 library 我是非常克制的。如果你不懂,我晚上可以在 sample 中写个示例。

至于 Pool 要不要静态的问题,我在其他 issue 回复过,那是要不要全局类型池的问题,你不能直接说不要 static,那只能显示你还是个门外汉,抱歉!

更多关于这个问题的回答:https://github.com/drakeet/MultiType/blob/master/README.md#qa-english-version-later

另外,有问题请开新 issues,这里讨论的是题主问题。

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.