Android Question TabStripViewPager Question

fatman

Active Member
Licensed User
Longtime User
Hi,

I´m using Tabstrip with several Tabs.
I need to know when the user "leaves" a certain tab.
Is there a chance to recognize that event?

Thx for hints and ideas
 

Mahares

Expert
Licensed User
Longtime User
Thx for hints and ideas
Maybe something of this nature:
B4X:
Private PrevPage As Int  'in Globals
B4X:
Sub TabStrip1_PageSelected (Position As Int)
    Log($"Just left page:"   ${PrevPage}"$)
    Log($"Current page: ${Position}"$)
    PrevPage=Position
End Sub
 
Upvote 0
Top