im have a listview with items and valu in my app (ListViews.AddTwoLinesAndBitmap2)
now i want to when im click on listview items then show clicked item text in a label .....
B4X:
Dim simUri As Uri
simUri.Parse("content://icc/adn")
Dim crsr As Cursor = cr.Query(simUri, Null, "", Null, "")
For i = 0 To crsr.RowCount - 1
crsr.Position = i
ListViews.AddTwoLinesAndBitmap2(crsr.GetString("number"),crsr.GetString("name") ,LoadBitmap(File.DirAssets,"co.png"),i)
next
You can either store an ID from the database and when you click on the ListView get this ID back and do a query to get the data.
Or, store the data as the return value in an array or a Type variable.