[android-developers] Re: Strange ListView loading problems
Hi,I have just encountered this problem. I guess you may have put a similar sentence into getView() as follows: if (convertView==null). just delete this and have a try! On 6月24日, 下午4时34分, Peter wrote: > I have alistviewthat is populated by a couple threads that pull in > data from the network. Before that data comes in, there are some > default values displayed. When the screen loads, there are 6 items > displayed, each with the default data. The 1st (index 0) loads and is > updated on the screen, and then number 6 (index5) is updated with > that same info. Then, item 2 (index 1) loads, and then item5(index > 4) mirrors that data. Then item 3 loads, then item 4 reloads with the > correct data, then then item5with the correct data, then item 6. > > Why are items5and 6 briefly showing the data from other elements in > the list? I can't figure out what in the world could be causing this. --~--~-~--~~~---~--~~ 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] Re: Strange ListView loading problems
No, getView() itself is quite simple. There are threads running while getView() is being called, but no threads spawned inside getView(). On Jun 24, 8:24 am, Guru wrote: > Are you running any thread in the getView of the adapter? > > On Wed, Jun 24, 2009 at 2:04 PM, Peter wrote: > > > I have a listview that is populated by a couple threads that pull in > > data from the network. Before that data comes in, there are some > > default values displayed. When the screen loads, there are 6 items > > displayed, each with the default data. The 1st (index 0) loads and is > > updated on the screen, and then number 6 (index 5) is updated with > > that same info. Then, item 2 (index 1) loads, and then item 5 (index > > 4) mirrors that data. Then item 3 loads, then item 4 reloads with the > > correct data, then then item 5 with the correct data, then item 6. > > > Why are items 5 and 6 briefly showing the data from other elements in > > the list? I can't figure out what in the world could be causing this. > > -- > Thanks and Regards > Gurudutt P.S. --~--~-~--~~~---~--~~ 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] Re: Strange ListView loading problems
Are you running any thread in the getView of the adapter? On Wed, Jun 24, 2009 at 2:04 PM, Peter wrote: > > I have a listview that is populated by a couple threads that pull in > data from the network. Before that data comes in, there are some > default values displayed. When the screen loads, there are 6 items > displayed, each with the default data. The 1st (index 0) loads and is > updated on the screen, and then number 6 (index 5) is updated with > that same info. Then, item 2 (index 1) loads, and then item 5 (index > 4) mirrors that data. Then item 3 loads, then item 4 reloads with the > correct data, then then item 5 with the correct data, then item 6. > > Why are items 5 and 6 briefly showing the data from other elements in > the list? I can't figure out what in the world could be causing this. > > > -- Thanks and Regards Gurudutt P.S. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---