代号一:使可滑动容器仅向左滑动

Codename one: Make swipeable container swipe only to the left

我刚刚在我的应用程序中添加了可滑动容器并且它运行良好,唯一的问题是我希望它只能向左滑动,从我在纪录片中读到的是,我可以让它滑动到右边有

public SwipeableContainer(Component bottomLeft,
                          Component top)

或者左右滑动

public SwipeableContainer(Component bottomLeft,
                          Component bottomRight,
                          Component top)

由于 iOS 通常总是向左滑动以删除列表项,我也希望这样,以便为用户创造良好的感觉。有人知道如何更改吗?

刚刚意识到

public SwipeableContainer(null,
                          Component bottomRight,
                          Component top)

我能做到。