Releases: kzlsnn/CardStackView
Releases · kzlsnn/CardStackView
Release v2.3.5
Fixed the problem of always swiping right in the swipe() function.
Example usage
private void updateCardStack(Direction direction){
CardStackLayoutManager cardStackLayoutManager = cardStackView.getCardStackLayoutManager();
SwipeAnimationSetting swipeAnimationSetting = new SwipeAnimationSetting.Builder().setDirection(direction).build();
cardStackLayoutManager.setSwipeAnimationSetting(swipeAnimationSetting);
cardStackView.setLayoutManager(cardStackLayoutManager);
}
private void swipeLeft() {
updateCardStack(Direction.Left);
cardStackView.swipe();
}
private void swipeRight() {
updateCardStack(Direction.Right);
cardStackView.swipe();
}
Full Changelog: v2.3.4...v2.3.5