Giter Site home page Giter Site logo

Comments (4)

brkckr avatar brkckr commented on May 22, 2024 1

Guys, i found a solution that is already coded by wasabeef. 10x again.

AlphaInAnimationAdapter alphaAdapter = new AlphaInAnimationAdapter(tga);
ScaleInAnimationAdapter scaleAdapter = new ScaleInAnimationAdapter(alphaAdapter);
scaleAdapter.setFirstOnly(false); //This line allows to animate the recyclerview again and again.

from recyclerview-animators.

maksimkurb avatar maksimkurb commented on May 22, 2024

+1

from recyclerview-animators.

brkckr avatar brkckr commented on May 22, 2024

+1, i m looking for the any solution to animate the recyclerview again.

from recyclerview-animators.

ThePromoter avatar ThePromoter commented on May 22, 2024

@brkckr this causes the rows to animate in every time, even after they are initially loaded. My use case is slightly different.

Let's say I have 20 total items, and I'm showing 5 at a time. When the fragment is first loaded and I scroll down, the 15 new rows all animate in perfectly. If I scroll up again, they do not animate in...since they have already been loaded.

If I then do a hard pull-to-refresh on the list, only the first 5 are shown again. Only now do I want the 15 new rows to re-animate as they appear.

Using setFirstOnly causes the items to always animate in, regardless of whether or not they had already been loaded previously. This may work for some use cases, but it's not exactly what I'm looking for.

EDIT: After looking into your suggestion, I did stumble across the setStartPosition method though...which does solve my use case. Calling setStartPosition(-1) appears to do the trick for me...so thanks for pointing me in the right direction!

from recyclerview-animators.

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.