java - Help on a simple Android ListView problem -


i new android, may seem basic question. got simple class called singleitem, has integer , string , getter , setter each. in application, got arraylist holds collection of singleitem objects. have layout listview widget.

what trying populate listview string value in singleitem, when user selects item listview, need integer id singleitem value. how do in android development?

if using own adapter populate list in getview() function when building view return can call settag() on view returning , store entire "singleitem" object. in onclicklistener of views return can retrieve info using gettag() method of view has been clicked.

edit: specified onclicklistener referring to


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -