Android Question how to get select item from customlistview on click

Discussion in 'Android Questions' started by Makumbi, Jun 27, 2019.

  1. Makumbi

    Makumbi Active Member Licensed User

    Sub CustomListView1_ItemClick (Index As Int, Value As Object)
    End Sub
    the above code gives me an empty value

    CustomListView1.AddTextItem(cs.Initialize.Typeface(Typeface.MATERIALICONS).Size(22).VerticalAlign(3dip).Append(Chr(0xE84F)).PopAll.Append("Profile").PopAll, "")
    i wanted to get the word Profile from the list please help
  2. aeric

    aeric Active Member Licensed User

    I think this is not the right way to add item into CustomListview. Follow the tutorial.
  3. Erel

    Erel Administrator Staff Member Licensed User

    The second parameter in AddTextItem is the item's value. You set it to be an empty string.
    Makumbi and aeric like 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