Android Question Get bitmap from listview ?

Discussion in 'Android Questions' started by Devv, Mar 5, 2015.

  1. Devv

    Devv Active Member Licensed User

    is it possible to get image list view bitmap ?
    ListView1.AddTwoLinesAndBitmap("Item #" & i, "This is the second line.", Bitmap1)
  2. mangojack

    mangojack Well-Known Member Licensed User

    If I understand .. you want to get the image of the listview selected item.

    By using AddTwoLinesAndBitmap2 method you can store a return value for item clicks .. unfortunately I don't think you can directly store an image.
    You could use a Map to store the Listview items (including Image) and set this as the return object
    Then on ListView_Click you can by access the contents of the map retrieving the image ...

    See This Thread ..
    DonManfred likes this.
  3. DonManfred

    DonManfred Expert Licensed User

    You can store an Object. Any object. You can store an bitmap too. ONLY a Bitmap.

    I suggest using a map into the returnvalue. With a Map (or list) you can store any amount of data or objects into one return-value

    Dim retmap As Map
    "line1","this is line 1")
    "line2","this is line 2")
    0),cells(1), retmap)
    mangojack likes this.
  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