Private Sub B4XPage_Created (Root1 As B4XView)
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private ScrollPane1 As ScrollPane
Private Pane1 As B4XView
End Sub
Public Sub Initialize
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Dim myPane As B4XView =xui.CreatePanel("")
myPane.LoadLayout("PaneToBeScrolledLayout")
Dim myHeight As Int = Pane1.Height
Dim myWidth As Int = Pane1.Width
myPane.SetLayoutAnimated(0, 0, 0, myWidth, myHeight)
ScrollPane1.LoadLayout("PaneToBeScrolledLayout", myWidth, myHeight)
End Sub