DEV Community

sricharan95
sricharan95

Posted on

CardStackView.Rewind() is not functioning in Fragment

I am using this cardStackView to display some set of pictures to swipe(Left,Right,Top). onClick() of rewind button I am trying to rewind the previous card by calling this rewind() method below. which is working great!!

public void rewind()
{
        manager.setRewindAnimationSetting(new RewindAnimationSetting.Builder()
                .setDirection(Direction.Right)
                .setDuration(Duration.Normal.duration)
                .setInterpolator(new DecelerateInterpolator())
                .build());
        cardStackView.rewind();
    Toast.makeText(getContext(), "Executed Rewind",

Latest comments (0)