CardStackView icon indicating copy to clipboard operation
CardStackView copied to clipboard

How to Create Direction TOP (Super Like Effect)

Open cbaser opened this issue 5 years ago • 1 comments

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

cbaser avatar Apr 16 '20 18:04 cbaser

@yuyakaido are you going to check that? It should not be so difficult I guess

cbaser avatar Jul 22 '20 07:07 cbaser