2016-11-20 193 views
2

我剛添加了可滑動的容器到我的應用程序,它工作完美,唯一的事情是我想它只能向左滑動,從我在紀錄片中讀取的內容是,我可以使它向右滑動與Codename one:使可滑動的容器僅滑動到左側

public SwipeableContainer(Component bottomLeft, 
          Component top) 

或使其左右滑動

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

由於iOS的刷卡是通常總是向左刪除列表項,我想這也是爲了給用戶創造良好的感覺。任何人都知道如何改變這一點?

回答

2

剛剛意識到通過簡單

public SwipeableContainer(null, 
          Component bottomRight, 
          Component top) 

我能實現它。