Android : List View or SPinner

Posted by Ram on Stack Overflow See other posts from Stack Overflow or by Ram
Published on 2010-05-02T16:35:58Z Indexed on 2010/05/02 16:47 UTC
Read the original article Hit count: 196

Filed under:

Team,

I would like to know how to display a List View or SPinner using key and value pairs in Android platform. For example take Contacts Contact has id, First Name, LastName, i would like to display First Name and Last Name in the list view or in the spinner,

id1, lastname1, firstname1 id2, lastname2, firstname2 id3, lastname3, firstname3

Once the user selected any value in the List view or spin list, I need to get the key value from the List view or spinner.

How to do it?

Any help or examples is greatly appreciated.

Thanks, Ramesh

© Stack Overflow or respective owner

Related posts about android