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

Discussion in 'Android Questions' started by Ramezanpour2, Mar 7, 2015.

  1. Ramezanpour2

    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 .....


    Code:
    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
     
  2. klaus

    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: Mar 7, 2015
  3. Ramezanpour2

    Ramezanpour2 Member Licensed User

    thanks dear friend
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice