B4J Tutorial Use Timelines to 'slide' listviews

Daestrum

Well-Known Member
Licensed User
Using timelines, it's possible for two (or more if you change code) listviews to occupy the same space on a form.
This demo will slide one listview, revealing the hidden listview. (A bit like swiping in android)
The method is not limited to listviews, it could work equally well with tableviews etc, just minor changes to the java code required.

The only thing is to remember to place them on the layout in the correct order, second one is behind first one. You can use 'send to back' to get them in the right order. Also they must be the same size ( w x h).
 

Attachments

Top