In my main page I use a drawer for a menu and have the following code in Page Appear which gives me the hamburger in the top left corner.
When I navigate to another page it should change to a Back arrow but remains a hamburger. Even though when touched it does go back
How do I get it to appear as a back arrow on sub pages please.
When I navigate to another page it should change to a Back arrow but remains a hamburger. Even though when touched it does go back
How do I get it to appear as a back arrow on sub pages please.
B4X:
Private Sub B4XPage_Appear
#if b4a
B4XPages.GetManager.ActionBar.RunMethod("setDisplayHomeAsUpEnabled", Array(True))
Dim bd As BitmapDrawable
bd.Initialize(HamburgerIcon)
B4XPages.GetManager.ActionBar.RunMethod("setHomeAsUpIndicator", Array(bd))
SetActionBarCustomViewState(False)
Dim cs As CSBuilder
Dim tmpuser As String = Options1.Get("UserName")
If tmpuser = "Username" Or tmpuser.Length < 1 Then
cs.Initialize.Color(xui.Color_Red).Append("Welcome ").PopAll
Else
cs.Initialize.Color(xui.Color_Red).Append("Welcome " & tmpuser).PopAll
End If
SetSubtitle(cs) 'subtitle can be text also
#end if
End Sub