Is there such as thing? I have loaded a layout when my app runs and then when the user clicks a menu item I load another layout. The problem is it's appearing over the top of the first one so you can see both. Is it possible to close a layout?
I've tried Activity.Finish but that closes the whole app!
I've tried Activity.Finish but that closes the whole app!
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("PowerZones")
Activity.AddMenuItem("Power Zones", "PowerZones")
Activity.AddMenuItem("Heart Zones", "HeartZones")
End Sub
Sub PowerZones_Click
'This is where I would like to close any other layout that is loaded
Activity.LoadLayout("PowerZones")
End Sub
Sub HeartZones_Click
'This is where I would like to close any other layout that is loaded
Activity.LoadLayout("HeartZones")
End Sub