In my MAIN activity, I have a reference to the StdActionBar library with the following code:
When the activity fires up for the first time, the bar_TabChanged event is fired and the "aChkrAcctg" activity is started without the user touching the tab.
When the Activity_Create is executed and the tabs are built, is there a way to not have the bar_TabChanged event fire until the user actually touches the tab?
Thank you.
B4X:
Sub Activity_Create(FirstTime As Boolean)
bar.Initialize("bar")
bar.NavigationMode = bar.NAVIGATION_MODE_TABS
bar.Subtitle = "EAM 3663 Main Menu"
bar.ShowUpIndicator = False
bar.Icon = LoadBitmap(File.DirAssets, "actionbarlogo.png")
bar.AddTab("Main Menu").Tag = "tabMainMenu"
bar.AddTab("Chkr Acctg").Tag = "tabChkrAcctg"
bar.AddTab("Office Acctg").Tag = "tabOfficeAcctg"
End Sub
Sub bar_TabChanged(Index As Int, sTab As StdTab)
If Index = 0 Then
StartActivity(aChkrAcctg)
End If
End Sub
When the activity fires up for the first time, the bar_TabChanged event is fired and the "aChkrAcctg" activity is started without the user touching the tab.
When the Activity_Create is executed and the tabs are built, is there a way to not have the bar_TabChanged event fire until the user actually touches the tab?
Thank you.