[android-developers] Help,I don't konw why the Contact apk(2.3, packages/apps/Contacts) can set a contact's photo in ui thread with the reused the view

2011-05-23 Thread he-frank
in android 2.3 source code, Contact (packages/apps/Contacts) app can
load the contacts' photo in a background thead, and set the photo to the
contacts listview .

my question is :
the listview's item is a reused view, and why it can set the photo into
the right item view. that's so odd. Any one can help!

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

[android-developers] LIstView,item data mismatch

2011-05-23 Thread he-frank
hi all,
I load consuming item data in a thread. I send a load data request when
listview state is idle. When the data load success, i'll show via a UI
handler.
The question is :
for example, in the listview position 1 and position 9 use the same
convertView, i get the position 1 data first ,then scroll to the
position 9 ,now i will send a request to get position 9 data, and then i
scroll to position 1. when the position 9 data load success, it will
show the data in position 1.
I don't know how to solve the problem.
help me ,thanks.

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