F FFMan Member Licensed User Longtime User Nov 10, 2011 #1 How do I change the displayed layout in code ? Do i use activity.loadlayout("<name>") What does changing the layout do, is the previous layout still active and can be updated or can one only update the active panel ? If I laod a previously used panel, will the previous contents still be there ? thanks
How do I change the displayed layout in code ? Do i use activity.loadlayout("<name>") What does changing the layout do, is the previous layout still active and can be updated or can one only update the active panel ? If I laod a previously used panel, will the previous contents still be there ? thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 11, 2011 #2 See this tutorial: Different examples with 2 layouts Upvote 0
F FFMan Member Licensed User Longtime User Nov 11, 2011 #3 thanks I'll take a look at those but I am confused with the terminology. Is there a diagram somewhere showing object hiaerachy ? What is the definition of a panel ? What is the definition of a layout ? The designer refers to layout so are these the same as VB forms ? The view are the items on the layout such as buttons etc ? Upvote 0
thanks I'll take a look at those but I am confused with the terminology. Is there a diagram somewhere showing object hiaerachy ? What is the definition of a panel ? What is the definition of a layout ? The designer refers to layout so are these the same as VB forms ? The view are the items on the layout such as buttons etc ?
Erel B4X founder Staff member Licensed User Longtime User Nov 11, 2011 #4 Controls are named Views in Android. Panel and Button are views. A layout file is a file created with the designer that holds the settings of multiple views. Layout files do not have any effect until you call Activity.LoadLayout or Panel.LoadLayout. Upvote 0
Controls are named Views in Android. Panel and Button are views. A layout file is a file created with the designer that holds the settings of multiple views. Layout files do not have any effect until you call Activity.LoadLayout or Panel.LoadLayout.