Android Question get text from ListViews.AddTwoLinesAndBitmap2 and show in a label

Ramezanpour2

Member
Licensed User
hi dears

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
 

klaus

Expert
Licensed User
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.
 
Last edited:
Top