Comments (6)
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.
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.
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.
That would help :)
from expandable-recycler-view.
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.
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)
- Unable to Clear Child Item of Particular Parent
- Improve RecyclerView adapter change animations HOT 1
- Internal lib crash
- ChildViewHolder with RecyclerView. LazyLoad
- notifyChildRangeInserted not working
- Odd behavior when starting animations in onExpansionToggled
- How to scroll recyclerview to selected parent position HOT 1
- How to limit child size
- how to change the view when clicking parent item
- Expandable Recyclerview is collapsing views when we update dataset HOT 1
- Change childcard depending on view clicked in parentcard
- two child in row
- How to show initially all views(parent & Child view) in expanded state HOT 1
- How to implement parent & child view search
- realm-expandable-recycler-view for, Inconsistency detected
- Facing issue while using linearLayoutManager.setReverseLayout(true)
- How to scroll recyclerview to particular position?
- How To scroll ExpandableListview inside NestedScrollView ?
- at parent position (0) update child list
- Delete item from recycler view
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 expandable-recycler-view.