Android Question [Solved] B4XBreadCrumb and B4XPages

LucaMs

Expert
Licensed User
Longtime User
How to move the B4XBreadCrumb from the last page that contained it (the last one shown) to the current page?

I should write code in the Appear event of the current page, that's the only thing I can figure out 😄
No, also another: that I will most likely have to put the B4XBreadCrumb in a public panel and move this one.


P.S.

2. Another option is to take the panel from the previous page and move it to the next page. It is simpler than it sounds.

:)
 

LucaMs

Expert
Licensed User
Longtime User
B4X:
Private Sub B4XPage_Appear
    Dim NavigatorIsHere As Boolean
    For Each xView As B4XView In Root.GetAllViewsRecursive
        If xView.Tag = "Navigator" Then
            NavigatorIsHere = True
            Exit
        End If
    Next
    If Not(NavigatorIsHere) Then
        'Move B4XBreadCrumb to this page.
        '1 - Get the last page shown. How to get its type?
        '2 - Remove B4XBreadCrumb from its Root
        '3 - Add B4XBreadCrumb to this page
    End If

:confused:
 
Upvote 0
Top