CardStackView icon indicating copy to clipboard operation
CardStackView copied to clipboard

card stop for some time while swiping

Open ilaxopavan opened this issue 5 years ago • 0 comments

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);

ilaxopavan avatar Aug 31 '19 07:08 ilaxopavan