T Terence Agius Member Licensed User Feb 14, 2018 #1 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")
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 Feb 14, 2018 #2 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
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
klaus Expert Licensed User Longtime User Feb 14, 2018 #4 There are different possibilities to manage several layouts. You may have a look at Different examples with 2 layouts. Upvote 0
There are different possibilities to manage several layouts. You may have a look at Different examples with 2 layouts.
T Terence Agius Member Licensed User Feb 14, 2018 #5 Thanks guys. I appreciate the help and now I understand better. Upvote 0