Hi!
I have a layout1 and I call it in application start sub, than I also have some buttons. How to call other layout to show and hide layout1 and show layout2?
Then Button:
And I want that, when I click on a Button Layout START dissapers and there is Layout Game on the screen.
What is the code to close an app? Sth like End?
Thanks,
c
I have a layout1 and I call it in application start sub, than I also have some buttons. How to call other layout to show and hide layout1 and show layout2?
B4X:
rivate Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "XĐ"
Page1.RootPanel.LoadLayout("Start")
Page1.RootPanel.Color = Colors.White
NavControl.ShowPage(Page1)
End Sub
Then Button:
B4X:
Sub Start_Click
Page2.Initialize("Page2")
Page2.Title = "XD"
Page2.RootPanel.LoadLayout("Start")
Page2.RootPanel.Color = Colors.White
Page2.RootPanel.LoadLayout("Game")
NavControl.ShowPage(Page2)
Timer1_Tick
End Sub
What is the code to close an app? Sth like End?
Thanks,
c