Hi,
I noticed B4i only has Classes and code modules.
How would you create a app that has multiple screens ?
Lets say I have a button, and a label and when I click on the button I want to then show the next page. Would I load the objects into a panel and then hide the panel when the button is pressed and then show the next panel with object in it ?
Or, would I use the following code:
Then when I click on the button I would call:
And it should swap the pages around ?
(I remember you saying something about how it does it the same as B4J but I haven't really played with that before.)
I noticed B4i only has Classes and code modules.
How would you create a app that has multiple screens ?
Lets say I have a button, and a label and when I click on the button I want to then show the next page. Would I load the objects into a panel and then hide the panel when the button is pressed and then show the next panel with object in it ?
Or, would I use the following code:
B4X:
Page1.Initialize("Page1")
Page1.RootPanel.LoadLayout("MyPage1")
NavControl.ShowPage(Page1)
Page2.Initialize("Page2")
Page2.RootPanel.LoadLayout("MyPage2")
Then when I click on the button I would call:
B4X:
NavControl.RemoveCurrentPage
NavControl.ShowPage(Page2)
And it should swap the pages around ?
(I remember you saying something about how it does it the same as B4J but I haven't really played with that before.)