Hello
I have a question, please dont send me to a tutorial, been there done that.
I used designer for layout
all on one layout
clv1 customlistview
edtin edittext
bntin button
lblout label
i use AddTextItem to populate clv1
my question is how to get text values out of clv1
for example click on item in clv1 and populate lblout
Option 1: Set the value parameter in AddTextItem to be the same as the text parameter.
And then:
B4X:
Sub CLV_ItemClick (Index As Int, Value As Object)
lbl1.Text = Value
End Sub
Option 2:
B4X:
Sub CLV_ItemClick (Index As Int, Value As Object)
lbl1.Text = clv1.GetPanel(Index).GetView(0).Text 'the label is the first (and only) view in the item's panel.
End Sub