Loading images in GridView using Universal Image Loader

前端 未结 2 747
臣服心动
臣服心动 2021-01-12 02:34

I\'m using the Universal Image Loader 1.8.6 library for loading dinamically images taken from web.

The ImageLoaderConfiguration configuration is the fol

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 03:01

    I have solved the problem

    I was just declaring option, but I wans't using it, so I have modified the line:

    imageLoader.displayImage(basePath+immagine, iv);
    

    into:

    imageLoader.displayImage(basePath+immagine, iv, options);
    

    and I have added in the options the method:

    .cacheOnDisc(true)
    

提交回复
热议问题