-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please provide getSectionCount() and getSection(position) #295
Comments
A Groupie is built with composability in mind. Your adapter could be built from many sections, each with subsections and subsubsections etc. If you want to keep a track of a particular Group/Section you want to update then store a reference to it and just directly update it. |
Well, but then there is non obvious point:
adapter.groupCount returns 2 |
@AlexMatiash agreed on that point. Those methods need to be named better. Perhaps it'll be useful to have a I'll explore for the next release |
@AlexMatiash PR opened #296 |
Update method names in GroupAdapter and add javadoc to better document what they do
Now deployed in 2.7.0 |
Please, correct me, if I'm doing something wrong. I have sections with header and items. Each section has id. When I need to add\remove\update item in this section I do:
The problem - adapter.groupCount returns number of all items I have in the list, not sections. adapter.getGroup(s) works almost correctly - for each s it returns correct section, but as many times as many items this section has.
What I believe would be very useful - possibility to get number of and then navigate directly by sections.
Also I would like to have adapter.removeSection(position) and section.removeItem(position), now it is only possible to remove using section\item as argument.
The text was updated successfully, but these errors were encountered: