#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region
'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private Label1 As B4XView
Public CLV As CustomListView
Private Button1 As B4XView
End Sub
Public Sub Initialize
End Sub
Sub AppStart
For i = 1 To 10
Dim pnl As B4XView = CreateItem("Zeile" & i)
CLV.Add(pnl,i)
Next
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")
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Sub CreateItem(Title As String) As B4XView
Dim p As B4XView = xui.CreatePanel("")
p.LoadLayout("ItemsLayout")
p.SetLayoutAnimated(0, 0, 0, p.Width, p.Height)
Label1.Text = Title
Return p
End Sub
Private Sub Button1_Click
AppStart
End Sub