List/Spinner label vs. value

Put your problem here if it does not fit any of the other categories.

List/Spinner label vs. value

Postby willievu » Mon Dec 31, 2007 11:23 am

So far all the samples of ListActivity, ListView and Spinner illustrate how to display a list of values. Is it possible to use these widgets to show name-value pairs so that display labels are different from corresponding values?
willievu
Freshman
Freshman
 
Posts: 6
Joined: Tue Dec 04, 2007 9:16 am

Top

Postby plusminus » Thu Jan 03, 2008 12:37 pm

Hello willievu,

I would place a HashMap<String, YOURTYPE> in the backgorund or just an ArrayList<YOURTYPE> if the indexes are stable.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 9 guests