This looks like it solves my problem too, except that I need to target
1.5 and setTag is 1.6 +. Suggestions?
j

On Jun 12, 5:43 pm, Goran Genter <[email protected]> wrote:
> Thanks for the tip.
>
> I've done like you said and it's exactly what I needed.
>
> Best regards,
> Goran Genter
>
> On Jun 12, 10:40 pm, Streets Of Boston <[email protected]>
> wrote:
>
> > Use the convertView.setTag to set an identifier that your AsyncTask
> > can recognize when the image has been loaded.
> > Don't rely on the order in which the getView gets called (with respect
> > to its 'position' parameter).
>
> > On Jun 12, 4:35 pm, Goran Genter <[email protected]> wrote:
>
> > > Greetings everyone,
>
> > > I'm developing application that shows thumbnails of images in gridview
> > > widget. I load html with image names, and set ImageAdapter. That image
> > > adapter loads single image (from internet or SD card) in AsyncTask
> > > with selected image position. After I initialy download html with
> > > image names, and parse them to array, I set selection of GridView to
> > > index of last image. But, what happens is this : first image that gets
> > > downloaded is image with index zero. That gives me a lot of trouble
> > > because i'm using convert views and AsyncTasks, so sometimes I end up
> > > with wrong picture at first column in last row (sometimes picture with
> > > index 0 gets in there), depending on which AsyncTask gets executed
> > > first. Even stranger, I end up with around 10 calls to getView for
> > > image with index 0.
>
> > > Does anyone have idea how to switch GridViews position to last image,
> > > and not have image with index 0 loading?

-- 
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