The Custom List View AddTextItem is a very useful method as the panel/label is resized automatically to fit the text but how do you read read/get the text stored at an index?
A simple hack solution is to add the same text as the item value:
But how can the original text at the xCLV index be read/get directly from the panel/label?
Is there a click event for the xCLV text item label?
Am I missing something simple?
B4X:
Dim myText="ABCDEFG" As String
For line=0 To 30
xCLV1.AddTextItem(myText,"")
Next
Private Sub xCLV1_ItemClick (Index As Int, Value As Object)
Log("Index: "&Index&" Value: "&Value)
End Sub
A simple hack solution is to add the same text as the item value:
B4X:
For line=0 To 30
xCLV1.AddTextItem(myText,myText)
Next
But how can the original text at the xCLV index be read/get directly from the panel/label?
Is there a click event for the xCLV text item label?
Am I missing something simple?