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",
…

Top comments (0)

Become a ModeratorHey! We would love your help!

Fill out this survey and help us moderate our community by becoming a tag moderator here at DEV.