bakerjq / android-infinitecards Goto Github PK
View Code? Open in Web Editor NEWAn infinite card switching UI for Android, support custom animation 自定义实现神奇动效的卡片切换视图
License: Apache License 2.0
An infinite card switching UI for Android, support custom animation 自定义实现神奇动效的卡片切换视图
License: Apache License 2.0
I have implemented the view successfully and everything is working fine except that it takes additional padding and appears to be very small on high DPI devices.
试了 设置 style 1 2 3 pre 和 next 切换动画都跟楼主gif上对不上
android 7.0 华为mate9 实测
您好,我看了demo,发现了一个问题。就是我先用某个动画效果(setStyle1)完成动作后,紧接着设置另一个动画效果(setStyle2)。后面如果做动作的话,效果还是style1的。请问这是为什么?
Does it support manual sliding?
My items have click listeners embedded in them, so I want the cards to change on swipe instead of a click action. Is the functionality available in the current version?
Attempt to invoke virtual method 'int android.widget.BaseAdapter.getCount()' on a null object reference
private void firstSetAdapter(BaseAdapter adapter) {
if (mTransformerAnimAdd != null) {
mIsAddRemoveAnim = true;
}
mCards = new LinkedList<>();
// mCards4JudgeZIndex = new ArrayList<>();
mCardCount = adapter.getCount(); (issue)
It's leading me to your firstSetAdapter. Tried many times other infinite views are working properly but after many attempts, your code is crashing on CardAnimationHelper class line 463.
Hi, I'm trying to implement a card stack using this library in which 1 button click can cause multiple card switches (i.e. multiple BringToFront actions)? But it seems like every time I clicked the button it only does 1 card switch. I'm wondering if the feature above is possible using this library? Any help would be appreciated!
这个可以左右滑动么?
Hi. I would like the front-to-back animation to work exactly like the back-to-front animation. Meaning, the card at the front goes up, and over the top, to the back, with the rest of the stack moving forward (rather than swinging out to the side, as in your example).
I've played around with lots of options, but can't make this happen. Can you help please?
Hi, I'm facing some issues with the swap animation. My adapter earlier was very long and inefficient so I had to put 1.5s delay so that the cards UI can render properly and then the swap animation took place. Now I have optimized the adapter to an extent where it can't be optimized more I guess and I see a much better performance boost. I have written all the necessary cases for the adapter in my model class and the adapter has just got to render the UI and nothing else, no complex conditions are present. But I'm still facing that issue even after such a fast operation, the swap animation doesn't work if I remove the delay or decrease it lesser than 1500ms. I'm using a Handler for this. Can you give me some insight into how can I lower the delay?. Thanks
how can i reverse the layout , i want put the outside card board in bottom .
in chinese ,我想把那些突出的卡片的边放到下面,应该怎么办?
Hi, I need to replace the already seen cards with new ones without seeing the discard animation.
Need replace, delete or add an element in the array "resId"
findViewById(R.id.next).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (mIsAdapter1) {
resId[1] = R.mipmap.pic10; // Replace item
mAdapter1.notifyDataSetChanged(); // here lost CardSizeRatio
//mCardView.setCardSizeRatio(1); //It does not work fine
//setStyle2(); //It does not work fine
//mCardView.bringCardToFront(mAdapter1.getCount() - 1);
}
mCardView.bringCardToFront(1);
}
});
Thanks
Apologies that this isn't an issue, but maybe you can advise how this can be done.
Do you think it's possible to have the cards angled slightly by default, as they appear in this example:
https://uimovement.com/ui/3782/credit-card/
Thanks for looking.
I think it will be good if have swipe action in cards
您好,很喜欢你写的这个效果,但是有个小问题请教下:
目前是有多少图片就会显示多少个图片的堆叠效果,能不能固定只显示3个呢,或者能提供下思路吗,谢谢!
How to remove a card from stack? Is there any method for that?
Also can we get the current card-item/card-view in the CardAnimationListener
How can I only show one card to view,, and the others hidden?
现在是在外部开一个定时器,循环
mCardView.bringCardToFront(1);
调用这个方法,然后查看时,特别消耗性能
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.