#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 CustomListView1 As CustomListView
Private B4XBreadCrumbCustom1 As B4XBreadCrumbCustom
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("frm_main")
Dim xpnl As B4XView = xui.CreatePanel("")
xpnl.SetLayoutAnimated(0,0,0,Root.Width,CustomListView1.AsView.Height)
xpnl.LoadLayout("frm_BreadLayout")
CustomListView1.Add(xpnl,"")
Dim lst_Items As List
lst_Items.Initialize
' For i = 0 To 20 -1
' lst_Items.Add(i+1)
'
' Next
lst_Items.Add("long item 1")
lst_Items.Add("long item 2")
lst_Items.Add("long item 3")
lst_Items.Add("long item 4")
lst_Items.Add("long item 5")
B4XBreadCrumbCustom1.Items = lst_Items
CustomListView1.ResizeItem(0,B4XBreadCrumbCustom1.FullItemWidth)
CustomListView1.GetPanel(0).Width = B4XBreadCrumbCustom1.FullItemWidth
B4XBreadCrumbCustom1.Base_Resize(B4XBreadCrumbCustom1.FullItemWidth,B4XBreadCrumbCustom1.mBase.Height)
End Sub
Private Sub B4XBreadCrumbCustom1_CrumbClick (Crumbs As List)
Log("BreadCrumb Click")
End Sub