开发者

GridView getView method called multiple times while loading images from server causing scrolling very slow

开发者 https://www.devze.com 2023-03-21 02:28 出处:网络
I am using a gridview with image adapter. The adapter load images from web and show in gridview. The problem is that when I scroll down and scroll up again, the images that has been already loaded are

I am using a gridview with image adapter. The adapter load images from web and show in gridview. The problem is that when I scroll down and scroll up again, the images that has been already loaded are being loaded again slowing the scrolling. Any 开发者_开发百科Idea...???


its beacause each time a new imageview is created.reuse the convertview that you pass to your getview() method of the image adapter.

0

精彩评论

暂无评论...
验证码 换一张
取 消