Fork us on GitHub

Side Swipe

Chen's been busy with some customers on a feature that is oft...

Side Swipe

Chen's been busy with some customers on a feature that is often requested: mailbox like swipes. This effectively allows you to swipe a component to the side in order to reveal capabilities underneath e.g. edit, delete etc. 
Using this capability is really trivial just use something like a a MultiButton and place it in a SwipeableContainer with the bottom Container which includes the various actions as such:
SwipeableContainer swip = new SwipeableContainer(bottom, top);

You then add the swipeable container probably into a BoxLayout Y container such as in this case, see the demo video below.

Notice: This post was automatically converted using a script from an older blogging system. Some elements might not have come out as intended.... If that is the case please let us know via the comments section below.

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.