【问题标题】:Codename one: Make swipeable container swipe only to the left代号一:使可滑动容器仅向左滑动
【发布时间】:2016-11-20 23:19:49
【问题描述】:

我刚刚在我的应用程序中添加了可滑动的容器,它运行良好,唯一的事情是我希望它只向左滑动,从我在纪录片中读到的内容是,我可以让它向右滑动与

public SwipeableContainer(Component bottomLeft,
                          Component top)

或者让它左右滑动

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

由于 iOS 在删除列表项时通常总是向左滑动,因此我也希望这样可以为用户创造良好的感觉。有人知道怎么改吗?

【问题讨论】:

    标签: java ios codenameone


    【解决方案1】:

    刚刚意识到这一点

    public SwipeableContainer(null,
                              Component bottomRight,
                              Component top)
    

    我能做到。

    【讨论】:

      猜你喜欢
      • 2021-12-12
      • 1970-01-01
      • 2021-02-19
      • 1970-01-01
      • 1970-01-01
      • 2012-07-10
      • 2011-04-17
      • 2016-10-31
      • 2011-08-25
      相关资源
      最近更新 更多