B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
expandable.Initialize(clv1)
For i = 1 To 20
Dim p As B4XView = CreateItem(Rnd(0xFF000000, 0xFFFFFFFF), "Item #" & i, Rnd(100dip, 300dip) + 60dip)
clv1.Add(p, expandable.CreateValue(p, "value" & i))
Next
End Sub
B4X:
Sub clv1_ItemClick (Index As Int, Value As Object)
expandable.ToggleItem(Index)
'???
End Sub