Android Question [B4X] AS_TabMenuAdvanced Help

llama

Member
Licensed User
Longtime User
Hi everyone and Alex creator of

[B4X] AS_TabMenuAdvanced​

I am testing to see if this will work in a project I am a little stuck on loading a layout once you press a tab, or does this have to be a panel? I have been using
TabStrip Viewer and you can click on a tab and load a layout in a simple way using the code below.

B4X:
T abStrip1.LoadLayout("Page1", "PAGE 1")

Question is how do I do this in AS_TabMenuAdvanced?

Excuse my lack of knowledge I like the AS_TabMenuAdvanced so would like to use it, I have the following that checks the tab clicked just need to load a layout or do we have to create dynamic panels to hide and show.. Below how would I load a layout for each tab?

Detect tab click:
Private Sub AS_TabMenuAdvanced_Design4_TabClick (Index As Int)
    Log(Index)
    If Index == 0  Then
        'code To load layout
    End If
   
End Sub

Any help would be appreciated - Thank you in advanced
 

Alexander Stolte

Expert
Licensed User
Longtime User
I have been using
TabStrip Viewer and you can click on a tab and load a layout in a simple way using the code below.
Question is how do I do this in AS_TabMenuAdvanced?
The AS_TabMenuAdvanced is not a TabStrip, it's just a Tab Menu. If you want to show a layout if you click on a tab, then you can do it with panels or with the AS_ViewPager.
But in both variants, the panel/viewpager must be placed above the TabMenu, or below it, depending on where you want the menu.
 
Upvote 0
Top