Comments (22)
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.
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.
Did you do any operation on setTransformerAnimAdd
from android-infinitecards.
https://pastebin.com/i1LMSLYV
I'm using this function for animation.
from android-infinitecards.
Maybe you can try setTransformerAnimAdd(null) and setTransformerAnimRemove(null) then remove the delay
from android-infinitecards.
And where do I do this?
from android-infinitecards.
Just after initiate eg. findViewById
from android-infinitecards.
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.
yes
from android-infinitecards.
from android-infinitecards.
oh gosh...my mistake....I'll update it
from android-infinitecards.
Okay, please revert when done, I'll also update the lib. version. Thanks.
from android-infinitecards.
try version 1.0.5
from android-infinitecards.
Sure.
from android-infinitecards.
Looks good, no errors now. I'm gonna test it. I'll revert.
from android-infinitecards.
Thanks
from android-infinitecards.
My pleasure to help
from android-infinitecards.
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.
I think I can only solve this by debug the project......
from android-infinitecards.
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.
remote connection may not available........for some extra reason in China......
from android-infinitecards.
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)
- Is it possible for the cards to be angled by default? HOT 5
- only show one card to view HOT 2
- java.lang.NullPointerException: HOT 1
- Does it support manual sliding HOT 1
- Can I implement swipe action on the items. HOT 12
- Show selected items from list on the view HOT 1
- View taking padding by default HOT 5
- How to change the size of each card? HOT 1
- How can i replace an element in an array keeping style?
- Can we add swipe action in cards? HOT 3
- 如果要循环滚动,怎么是性能消耗最低 HOT 1
- Multiple card switches with 1 click?
- how to reverse the layout HOT 1
- 关于动画效果 HOT 19
- 这个可以左右滑动么? HOT 4
- 动画效果问题 HOT 4
- Remove a card from stack HOT 1
- 请问可以固定显示的个数吗? HOT 1
- Front to back animation HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-infinitecards.