2010/5/3 yidongsoft <[email protected]>

> Customize a listview as:
> String[] lastName;
> String[] firstName;
> int[] ids;
> ...
> public object getItem(int position){
> return ids[position];
> }
>

Please don't do this. Maintaining 3 (or more) separate lists where each item
at a given position corresponds to the other items at the same index is just
asking for trouble.

Just have one structure that contains the data you need and have a SINGLE
list of that object type.

Also, having that getItem function return an Object when the array it's
getting its data from is of int type makes no sense.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to