Giter Club home page Giter Club logo

Comments (7)

devonoccasion avatar devonoccasion commented on May 30, 2024 2

I had the same problem, because everytime I loaded new data I added the item decoration for my new List. As a workaround I remove the old item decoration with:

int count = tlRecyclerView.getItemDecorationCount();
if (count  > 0)       
   tlRecyclerView.removeItemDecorationAt(count  - 1);

Now everythings works as expected

from stickytimeline.

sangcomz avatar sangcomz commented on May 30, 2024

@dhara95
Could you show me the code implemented in RecyclerSectionItemDecoration.SectionCallback?

from stickytimeline.

dhara95 avatar dhara95 commented on May 30, 2024

private RecyclerSectionItemDecoration.SectionCallback getSectionCallback(List finalLeadsMapMarkersList) {
return new RecyclerSectionItemDecoration.SectionCallback() {
//In your data, implement a method to determine if this is a section.
@OverRide
public boolean isSection(int i) {
return !finalLeadsMapMarkersList.get(i).getDateGroup().equals(finalLeadsMapMarkersList.get(i - 1).getDateGroup());
}

        //Implement a method that returns a SectionHeader.
        @Override
        public SectionInfo getSectionHeader(int i) {
            return new SectionInfo(finalLeadsMapMarkersList.get(i).getDateGroup(), "");
        }
    };
}

from stickytimeline.

TilsonF avatar TilsonF commented on May 30, 2024

for me too making swipe filling the list.

from stickytimeline.

sangcomz avatar sangcomz commented on May 30, 2024

@dhara95

Was not it the case comment above?
Did you solve the issue in another way?

from stickytimeline.

sueysok avatar sueysok commented on May 30, 2024

I had the same problem, because everytime I loaded new data I added the item decoration for my new List. As a workaround I remove the old item decoration with:

int count = tlRecyclerView.getItemDecorationCount();
if (count  > 0)       
   tlRecyclerView.removeItemDecorationAt(count  - 1);

Now everythings works as expected

it is useful for me

from stickytimeline.

faustodc avatar faustodc commented on May 30, 2024

Perhaps the library should have a method to clear the whole list? or notify of a new dataset?

from stickytimeline.

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.