Giter VIP home page Giter VIP logo

Comments (6)

paul-turner avatar paul-turner commented on September 21, 2024

mItemList was renamed to mHelperItemList, should still have the same ability you had before. Let me know if that isn't the case!

from expandable-recycler-view.

tsuharesu avatar tsuharesu commented on September 21, 2024

It is private, I can't access with my Adapter
https://github.com/bignerdranch/expandable-recycler-view/blob/master/expandablerecyclerview/src/main/java/com/bignerdranch/expandablerecyclerview/Adapter/ExpandableRecyclerAdapter.java#L41

from expandable-recycler-view.

paul-turner avatar paul-turner commented on September 21, 2024

Ah missed that, I tend to default to private when declaring variables.

Would it suit your needs to have
https://github.com/bignerdranch/expandable-recycler-view/blob/master/expandablerecyclerview/src/main/java/com/bignerdranch/expandablerecyclerview/Adapter/ExpandableRecyclerAdapter.java#L342
made protected or public in order for you to get the item for a specific index? Or do you need the entire list usually?

from expandable-recycler-view.

tsuharesu avatar tsuharesu commented on September 21, 2024

That would help :)

from expandable-recycler-view.

paul-turner avatar paul-turner commented on September 21, 2024

Will get that right out.

Was thinking about your use case further today, seems like we could be more flexible in allowing multiple view types of parents and children. Basically by default we can assume 1 and 1, and if the user of the library needs more they can override getChildViewType/getParentViewType and return the types based on their model and we'll pass that information of view type to onCreate/onBind.
If it doesn't fit your use case directly I think it might still be of benefit for more view types within a list. Thoughts?

from expandable-recycler-view.

tsuharesu avatar tsuharesu commented on September 21, 2024

What I am doing right now is overriding getItemViewType, returning the ViewType of my model.
Then on onCreateViewholder I create the holder I need and overriding onBindViewholder to bind the way I need. If it is not one of my custom viewholders I just use super - that will call parent or child bind.

from expandable-recycler-view.

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.