How to avoid image flickering in a listview

前端 未结 5 1103
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 02:09

I have a listivew that display a bunch of images. am using Universal Image Loader to load this images from files to imageviews.

This images have dif

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 02:10

    my suggestion is to use grid view to avoid flickering of images it will load at first time if it is same url , it will load from cache

     Glide.with(mContext)
                .load(item.getImageUrl())
                .into(holder.mIVGridPic);
    

提交回复
热议问题