title: ListView VERY slow when images are loaded (using Universal Image Loader)
body: <p>My listView runs very smooth with just text - but as soon as I try to load in thumbnails (even from cache), it runs SOO choppy.</p>
  
  <p>I'm using the <a href="https://github.com/nostra13/Android-Universal-Image-Loader" rel="nofollow">Universal Image Loader script</a></p>
  
  <p>The code in my ArticleEntryAdapter within <code>public View getView(...)</code> method:</p>
  
  <pre><code>/**
       * PHOTOS
       */
      ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this.mContext)
          .enableLogging()
          .memoryCacheSize(41943040)
          .discCacheSize(104857600)
          .threadPoolSize(10)
          .build();
  
      DisplayImageOptions imgDisplayOptions = new DisplayImageOptions.Builder()
          //.showStubImage(R.drawable.stub_image)
          .cacheInMemory() 
          .cacheOnDisc() 
          //.imageScaleType(ImageScaleType.EXACT) 
          .build();
  
      ImageLoader imageLoader = ImageLoader.getInstance();
      imageLoader.init(config);
  
      //loads image (or hides image area)
      imageLoader.displayImage("", viewHolder.thumbView); //clears previous one
      if(article.photopath != null &amp;&amp; article.photopath.length() != 0)
      {
          imageLoader.displayImage(
              "http://img.mysite.com/processes/resize_android.php?image=" + article.photopath + "&amp;size=150&amp;quality=80",
              viewHolder.thumbView,
              imgDisplayOptions
              );
          viewHolder.thumbView.setVisibility(View.VISIBLE);
      }
      else
      {
          viewHolder.thumbView.setVisibility(View.GONE); //hide image
          viewHolder.thumbView.invalidate(); //should call after changing to GONE
      }
  </code></pre>
  
  <p>Logcat shows that it's loading the images from cache (I think):</p>
  
  <pre><code>ImageLoader    Load image from memory cache [http://img.mysite.com/processes/...
  </code></pre>
  
  <p>I'm testing it on my Samsung Galaxy Nexus and running Android 4.0.4 (though my minSdkVersion="8")</p>