jin pinger
jin pinger

Reputation: 3

CardStackView's swipe function not working in Android fragment

I am using CardStackView in Android: https://github.com/yuyakaido/CardStackView

In activity, swipe action works well, but in fragment, I cannot use swipe fucntion. Why does this happen?

Upvotes: 0

Views: 787

Answers (2)

hmz.io
hmz.io

Reputation: 11

I had the same issue:

manager.setSwipeableMethod(SwipeableMethod.AutomaticAndManual);

Fixed it for me.

Upvotes: 1

quaide
quaide

Reputation: 93

Did you try like followings?

    cardStackView.setSwipeEnabled(true);

I think if you set swipeenabled as true, it will works

Upvotes: 0

Related Questions