For i = 1 To 20 '@From the Example ...
Dim p As B4XView = CreateItem(Rnd(0xFF000000, 0xFFFFFFFF), "Item #" & i, i , Rnd(100dip, 300dip) + 60dip)
clv1.Add(p, expandable.CreateValue(p, "some value"))
Next
End Sub
Sub CreateItem(clr As Int, Title As String, Index As Int, ExpandedHeight As Int) As B4XView
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, clv1.AsView.Width, ExpandedHeight)
p.LoadLayout("Item")
B4XComboBox1.Tag = Index -1 '*above loop = starts at 1.
'........................
Sub B4XComboBox1_SelectedIndexChanged (Index As Int)
Dim Combo As B4XComboBox = Sender
Dim Index As Int = Combo.Tag
Dim pnl As B4XView = clv1.GetPanel(Index)
Dim pnlItem As B4XView = pnl.GetView(1) 'Items Panel
pnlItem.GetView(1).Text= Combo.GetItem(Index) 'EditText *check Designer View Tree Index
End Sub