Android Question Get Text from Customlist item

db0070

Active Member
Licensed User
I have this CustomListView that I populate with TextItems. Using GetValue, I can get the item number the user clicked on but how do I get the text?
B4X:
    dim List1 As CustomListView

    List1.AddTextItem("Tone A",0)
    List1.AddTextItem("Tone B",1)
    List1.AddTextItem("Tone C",2)
    List1.AddTextItem("Tone D",3)
 

Erel

Administrator
Staff member
Licensed User
B4X:
Sub clv1_ItemClick (Index As Int, Value As Object)
   Dim text As String = clv1.GetPanel(Index).GetView(0).Text
   Log(text)
End Sub
CLV.AddTextItem creates items made of a single label.
 
Top