Giter VIP home page Giter VIP logo

Comments (22)

BakerJQ avatar BakerJQ commented on May 22, 2024

If you can give a demo code to me, maybe I can understand the situation better. For now, I don't quite understand the situation you described

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

card.txt
Please check this file out, I can't share the adapter with you due to security concerns. I'll walk you through the code, can you set up a call if possible? Thanks.

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

Did you do any operation on setTransformerAnimAdd

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

https://pastebin.com/i1LMSLYV
I'm using this function for animation.

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

Maybe you can try setTransformerAnimAdd(null) and setTransformerAnimRemove(null) then remove the delay

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

And where do I do this?

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

Just after initiate eg. findViewById

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

cardStackView.setClickable(false); cardStackView.setAnimType(InfiniteCardView.ANIM_TYPE_SWITCH); cardStackView.setAnimInterpolator(new OvershootInterpolator(-8)); cardStackView.setTransformerToFront(new DefaultCommonTransformer());

Can I do it after the third line?

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

yes

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

screenshot
They show this error.

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

oh gosh...my mistake....I'll update it

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

Okay, please revert when done, I'll also update the lib. version. Thanks.

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

try version 1.0.5

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

Sure.

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

Looks good, no errors now. I'm gonna test it. I'll revert.

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

Thanks👍

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

My pleasure to help

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

Removed the delay and added the two statements just after findViewById
The app crashed, looks like it runs the animation before the cards are rendered.

'java.lang.Object java.util.LinkedList.getFirst()' on a null object reference
cardStackView.bringCardToFront(1); got the error on this.

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

I think I can only solve this by debug the project......

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

I know what the problem is, the methods are executing before the cards are being rendered. I'll look into it. Can you take a remote connection and help me out. The library is awesome and has adapted to the requirements very well. The issue is probably on my side.

from android-infinitecards.

BakerJQ avatar BakerJQ commented on May 22, 2024

remote connection may not available........for some extra reason in China......

from android-infinitecards.

AtharvaAbsolute avatar AtharvaAbsolute commented on May 22, 2024

Okay, I'll try and debug, maybe it needs more optimization. I really appreciate the help and time. Thanks.

from android-infinitecards.

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.