With TablePanel class, the user can switch pages by swiping right or left over the bottom of the table.
Usage:
Initialize TablePanel and load the layout to TablePanel instead of the activity:
Handle the swipe event:
Depends on ViewsEx v1.30+.
Usage:
Initialize TablePanel and load the layout to TablePanel instead of the activity:
B4X:
tp.Initialize(Me, "tp", Activity)
tp.base.LoadLayout("1")
Handle the swipe event:
B4X:
Sub tp_Swipe (DeltaX As Float, DeltaY As Float)
If DeltaX < 0 And btnNext.Enabled Then btnNext_Click
If DeltaX > 0 And btnPrev.Enabled Then btnPrev_Click
End Sub
Depends on ViewsEx v1.30+.