Android Question Switch Layouts

Terence Agius

Member
Licensed User
I know this must be obvious, but I can't figure it out
If I have 2 or 3 layouts in an app, how do I switch between them?

B4X:
Sub Activity_Create(FirstTime As Boolean)
   Private i As Int
 
   Activity.LoadLayout("Main")
   Activity.LoadLayout("Settings")
 

Star-Dust

Expert
Licensed User
Longtime User
Put each layout in on the panel.
Then set PanelXXX.Visible = False to make those you do not need disappear and True for what you want to bring up.

Or PanelXXX.BringToFront if you want to put a panel above the others to cover them
 
Upvote 0
Top