title: Android universal image loader showing images partially
body: <p>I have a gallery which is using <a href="https://github.com/nostra13/Android-Universal-Image-Loader/" rel="nofollow noreferrer">Android universal image loader</a>. Problem is that the images are just partially shown, like half of the image, sometimes no image, but sometimes the image is shown whole.</p>
  
  <pre><code>DisplayImageOptions options = new DisplayImageOptions.Builder()
                                              .cacheInMemory()
                                              .build();
  ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
                                              .defaultDisplayImageOptions(options)
                                              .threadPoolSize(1)
                                              .threadPriority(Thread.MIN_PRIORITY + 3)
                                              .denyCacheImageMultipleSizesInMemory()
                                              .memoryCacheSize(2 * 1024 * 1024)
                                              .enableLogging()
                                              .build();
  
  imageLoader = ImageLoader.getInstance();
  imageLoader.init(config); 
  imageLoader.handleSlowNetwork(true);
  
  
  subImage1 = (ImageView)findViewById(R.id.subImage1);
  subImage2 = (ImageView)findViewById(R.id.subImage2);
  
  imageLoader.displayImage( "http://path/to/image1.webp", subImage1);
  imageLoader.displayImage( "http://path/to/image2.webp", subImage2);
  </code></pre>
  
  <p><strong>LAYOUT</strong></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:paddingBottom="@dimen/activity_vertical_margin"
     android:paddingLeft="@dimen/activity_horizontal_margin"
     android:paddingRight="@dimen/activity_horizontal_margin"
     android:paddingTop="@dimen/activity_vertical_margin"
     tools:context=".MyActivity" &gt;
  
  
  
  &lt;ImageView
      android:id="@+id/subImage1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_centerVertical="true" /&gt;
  
  &lt;ImageView
      android:id="@+id/subImage2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignTop="@+id/subImage1"/&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>PROBLEM EXAMPLE</strong></p>
  
  <p><img src="https://i.stack.imgur.com/Du1N3.png" alt="enter image description here"></p>
  
  <p>What could be the problem?</p>