First of all, thanks for helping to answer my previous question and manage to resolve it.
Here is some example, page 1 is the login screen without the navigation bar, and page 2 is forgot password with showing the navigation bar and the back button.
Question 1: how do I preset the page 1 layout hide the navigation bar and page 2 show the navigation bar?
Question 2: how to I change the back button (Page 2) to white color?
First of all, thanks for helping to answer my previous question and manage to resolve it.
Here is some example, page 1 is the login screen without the navigation bar, and page 2 is forgot password with showing the navigation bar and the back button.
Question 1: how do I preset the page 1 layout hide the navigation bar and page 2 show the navigation bar?
Question 2: how to I change the back button (Page 2) to white color?
Dim Nav1, Nav2 as NavigationController
Dim Page1,Page2 as Page
Sub CreatePages
Nav1.Initialize("")
Nav2.Initialize("")
Page1.Initialize("")
Page2.Initialize("")
nav1.NavigationBarVisible=false
nav2.showpage(page2)
nav1.Showpage(page1)
End Sub
Sub ChangePage
nav1.showpage(nav2)
end sub
2.
B4X:
Dim no as NativeObject=NavControl
no.getfield("navigationBar").setfield("tintColor",no.ColorToUIColor(youColor))
Dim Nav1, Nav2 as NavigationController
Dim Page1,Page2 as Page
Sub CreatePages
Nav1.Initialize("")
Nav2.Initialize("")
Page1.Initialize("")
Page2.Initialize("")
nav1.NavigationBarVisible=false
nav2.showpage(page2)
nav1.Showpage(page1)
End Sub
Sub ChangePage
nav1.showpage(nav2)
end sub
2.
B4X:
Dim no as NativeObject=NavControl
no.getfield("navigationBar").setfield("tintColor",no.ColorToUIColor(youColor))
Thanks Erel, however it looks like a bit weird when I call back the Page1 and hide the navigationbar, so I decided the Hide the NavigationBar and create a custom Panel on Page 2 with the Back button. But the challenge is how to set the gesture swipe from left back to Page 1?