yuyakaido / CardStackView

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

Directon TOP is not working #282

Closed cbaser closed 4 years ago

cbaser commented 4 years ago

Hello I would like to add a super like button which has top direction but I can not handle it. I followed to same instructions in sample application but I don't know why, it is not working (it swipes to the right). Can you help me?

 FloatingActionButton super_like = view.findViewById(R.id.super_like_button);
        super_like.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               SwipeAnimationSetting setting = new SwipeAnimationSetting.Builder()
                .setDirection(Direction.Top)
                .setDuration(Duration.Normal.duration)
                .setInterpolator(new AccelerateInterpolator())
                .build();
        manager.setSwipeAnimationSetting(setting);
        cardStackView.swipe();
            }
        });