I am using an imageview and a progressbar as each child items of a gridview(Each GridView item contains an imageview and a progressbar) where progressbar is hidden. Each progressbar is visible when tap on grid item.
At first a loading image is shown in the imageview and it is updated by using downloaded images.
My problem is, when the user tap on grid item where image is loading image(Downloading is in progress)
the progressbar become visible.But the progressbar become invisible when invoking notifyDataSetChanged() to update the image.
How can i keep the state of progressbar even if the image is updated ?
Thanks in Advance.
notifyDataSetChanged()causes theGridViewto be reloaded. So you have to handle if the progress bar to be visible in your adapter’sgetView()method.