Sub Process_Globals
Private xui As XUI
End Sub
Sub Globals
Private SWLCLV As CustomListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("main")
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 100%x, 100%y)
p.LoadLayout("SWL")
p.Tag = SWLCLV 'name from layout file
'... later:
Dim SWL As CustomListView = p.Tag
SWL.DefaultTextColor = xui.Color_White
SWL.DefaultTextBackgroundColor = xui.Color_Blue
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
SWL.AddTextItem("srlih sfliuh wriuh wreiuhw rgivuh wugih iwuhreg iuh iuh tregvwiuh ", "SDFG")
End Sub 'Activity_Create
Sub SWLCLV_ItemClick (Index As Int, Value As Object)
Log(Index)
End Sub