Display images from a drawable folder using the universal image downloader

I want to download an image from the Live folder using the Universal Image Downloader (NOSTRA my code below

imgLoader = ImageLoader.getInstance(); imgLoader.init(new ImageLoaderConfiguration.Builder(this).build()); 

Now I upload the image to wallImage (ImageView) below, this is my code

 imgLoader.displayImage("drawable://" + result, wallImage); 

My problem is that it takes a long time to download the image. Can someone give me a solution, what should I do?

+4
source share
1 answer
 Imgloader.displayImage("drawable://" + result, wallImage); 

this method is not recommended for loading images into drawable ... you should use your own method like Vigbyor, as suggested

 imageview.setImageResources(res id); 
+3
source

Source: https://habr.com/ru/post/1490700/


All Articles