'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
For Each vw As B4XView In Root.GetAllViewsRecursive
Log($"${vw}"$)
Next
End Sub
Thanks, DonManfred, for insisting that the solution of Chris works.
Sorry, Chris, that I didn't read your post carefully. By changing view in B4Xview everything is fine.