yuyakaido / CardStackView

📱Tinder like swipeable card view for Android
Apache License 2.0
2.37k stars 448 forks source link

card stop for some time while swiping #277

Open ilaxopavan opened 5 years ago

ilaxopavan commented 5 years ago

when i swipe the card left or right it stops for some time at last during swipe, only last three position swipe properly here is the code i used cardStackLayoutManager = new CardStackLayoutManager(DemoActivity.this, DemoActivity.this); cardStackLayoutManager.setStackFrom(StackFrom.None);

                    cardStackLayoutManager.setTranslationInterval(8.0f);
                    cardStackLayoutManager.setScaleInterval(0.95f);
                    cardStackLayoutManager.setSwipeThreshold(0.2f);
                    cardStackLayoutManager.setMaxDegree(-60.0f);
                    cardStackLayoutManager.setDirections(Direction.HORIZONTAL);
                    cardStackLayoutManager.setCanScrollHorizontal(true);
                    cardStackLayoutManager.setCanScrollVertical(false);

cardStackLayoutManager.setSwipeableMethod(SwipeableMethod.AutomaticAndManual); cvMainScreen.setLayoutManager(cardStackLayoutManager); cvMainScreen.setAdapter(new CardStackAdapter(DemoActivity.this, "mainScreen",userDataArrayList)); cvMainScreen.scrollToPosition(2);