Code Monkey home page Code Monkey logo

Comments (4)

luizgrp avatar luizgrp commented on May 28, 2024 1

Hi @ahaverty,

Have a look on the Animations example in the demo app, there is code there refreshing individual items in a section.

Let me know if you still have issues.

Cheers

from sectionedrecyclerviewadapter.

ahaverty avatar ahaverty commented on May 28, 2024 1

Interesting! I'll give that a shot and report back 👌 Thanks for the help

from sectionedrecyclerviewadapter.

ahaverty avatar ahaverty commented on May 28, 2024

Thanks @luizgrp
I've since gone back to using native recycler views with sorted lists doing the updating work form me (see here for an example). I don't think this repo could currently support sorted lists like that, as it looks like the category headers are actually adapted list items.
I've gone with this as I'm using Firebase and doing a lot of complex asynchronous realtime updates with lists, and was finding it tedious manually updating the list.

If you think Sorted List could fit in with Sectioned Recycler View Adapter, i'd love to hear your suggestions.

Thanks for a great repo 👍

from sectionedrecyclerviewadapter.

luizgrp avatar luizgrp commented on May 28, 2024

Thanks for the update!

Section headers are just items in the RecyclerView but they are not items in your section's list. Thus I see no problem in using SortedList with this adapter, you will just have to adapt the code from the SO link you posted to use the notify methods from this adapter instead of the native adapter (e.g.: notifyItemRangeInserted to notifyItemRangeInsertedInSection).

Unless there are other issues which I can't see now. Let me know if you give it another try, I would be interested in hear the issues you faced with it.

from sectionedrecyclerviewadapter.

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.