When we are creating a B4XPage a Root Object declared as B4XView and later in B4XPage_Created it says Root = Root1 and Root1 is also B4XView
Can someone explain what Root or Root1 do and why we declare Root and then we say Root = Root1?
B4X:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
End Sub
Public Sub Initialize
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
End Sub
1. B4XView is the default type for most views, especially when building cross platform solutions.
2. Root is the page's root panel. It needs to be created somewhere. It is created and managed by B4XPagesManager and passed to the page in the Created event.
3. Root = Root1 -> just a simple assignment of the root panel that was injected from B4XPagesManager.
So B4XView is a type not a class?
B4XPagesManager is something we can't see just runs in background for as?
When we say Root.LoadLayout("page2") we load the page2.bjl file from Files folder?
This is what I want: "say" something and my sw writes the source code
I will develop an app to get it (Android, because windows in italian would not work)
This is what I want: "say" something and my sw writes the source code
I will develop an app to get it (Android, because windows in italian would not work)