<p dir="auto">Hello guys! Have an issue with image displaying.</p>
<p dir="auto">here is my onBindViewHolder code</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public void onBindViewHolder(ImagesViewHolder holder, int position) {
    ImageEntity image = list.get(position);
    ImageView imageView =  holder.imageView;
    imageView.setImageDrawable(null);
    Glide.with(context)
            .load(image.simpleUrl)
            .centerCrop()
            .diskCacheStrategy(DiskCacheStrategy.ALL)
            .listener(new RequestListener&lt;String, GlideDrawable&gt;() {
                @Override
                public boolean onException(Exception e, String model, Target&lt;GlideDrawable&gt; target, boolean isFirstResource) {
                    Log.e(&quot;IMAGE_EXCEPTION&quot;, &quot;Exception &quot; + e.toString());
                    return false;
                }

                @Override
                public boolean onResourceReady(GlideDrawable resource, String model, Target&lt;GlideDrawable&gt; target, boolean isFromMemoryCache, boolean isFirstResource) {
                    return false;
                }
            })
            .into(imageView);
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">onBindViewHolder</span>(<span class="pl-smi">ImagesViewHolder</span> <span class="pl-s1">holder</span>, <span class="pl-smi">int</span> <span class="pl-s1">position</span>) {
    <span class="pl-smi">ImageEntity</span> <span class="pl-s1">image</span> = <span class="pl-s1">list</span>.<span class="pl-en">get</span>(<span class="pl-s1">position</span>);
    <span class="pl-smi">ImageView</span> <span class="pl-s1">imageView</span> =  <span class="pl-s1">holder</span>.<span class="pl-s1">imageView</span>;
    <span class="pl-s1">imageView</span>.<span class="pl-en">setImageDrawable</span>(<span class="pl-c1">null</span>);
    <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">context</span>)
            .<span class="pl-en">load</span>(<span class="pl-s1">image</span>.<span class="pl-s1">simpleUrl</span>)
            .<span class="pl-en">centerCrop</span>()
            .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">ALL</span>)
            .<span class="pl-en">listener</span>(<span class="pl-k">new</span> <span class="pl-smi">RequestListener</span>&lt;<span class="pl-smi">String</span>, <span class="pl-smi">GlideDrawable</span>&gt;() {
                <span class="pl-c1">@</span><span class="pl-c1">Override</span>
                <span class="pl-k">public</span> <span class="pl-smi">boolean</span> <span class="pl-en">onException</span>(<span class="pl-smi">Exception</span> <span class="pl-s1">e</span>, <span class="pl-smi">String</span> <span class="pl-s1">model</span>, <span class="pl-smi">Target</span>&lt;<span class="pl-smi">GlideDrawable</span>&gt; <span class="pl-s1">target</span>, <span class="pl-smi">boolean</span> <span class="pl-s1">isFirstResource</span>) {
                    <span class="pl-smi">Log</span>.<span class="pl-en">e</span>(<span class="pl-s">"IMAGE_EXCEPTION"</span>, <span class="pl-s">"Exception "</span> + <span class="pl-s1">e</span>.<span class="pl-en">toString</span>());
                    <span class="pl-k">return</span> <span class="pl-c1">false</span>;
                }

                <span class="pl-c1">@</span><span class="pl-c1">Override</span>
                <span class="pl-k">public</span> <span class="pl-smi">boolean</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">GlideDrawable</span> <span class="pl-s1">resource</span>, <span class="pl-smi">String</span> <span class="pl-s1">model</span>, <span class="pl-smi">Target</span>&lt;<span class="pl-smi">GlideDrawable</span>&gt; <span class="pl-s1">target</span>, <span class="pl-smi">boolean</span> <span class="pl-s1">isFromMemoryCache</span>, <span class="pl-smi">boolean</span> <span class="pl-s1">isFirstResource</span>) {
                    <span class="pl-k">return</span> <span class="pl-c1">false</span>;
                }
            })
            .<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>);
}</pre></div>
<p dir="auto">but after I scroll recyclerView up I got this<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8720664/12856865/af4a61d8-cc4f-11e5-9d58-625610043373.png"><img src="https://cloud.githubusercontent.com/assets/8720664/12856865/af4a61d8-cc4f-11e5-9d58-625610043373.png" alt="image" style="max-width: 100%;"></a><br>
Please help me, thanks</p>
<p dir="auto">Glide sometimes doesn't load image<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8720664/10798680/8a6f0612-7db1-11e5-81cc-b27578fcd571.png"><img src="https://cloud.githubusercontent.com/assets/8720664/10798680/8a6f0612-7db1-11e5-81cc-b27578fcd571.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">please help, already have searched other issues but it has not helped.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Override
public void onBindViewHolder(final ImagesViewHolder holder, final int i) {

    String url;
    if (category_list == null) {
        url = Utils.getImageUrl(list.get(i).getId(), list.get(i).getFormat());


        holder.thumbnail.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (MainActivity.isDrawerOpened()) {
                    return;
                }
                FSAdController.checkFsTriger(context);
                GalleryActivity.loadedNumber = GalleryFragment.THIMBNAILS_NUMBER;
                Intent intent = new Intent(context, GalleryActivity.class);
                intent.putExtra(&quot;position&quot;, i);
                GalleryActivity.setImageList(list);
                GalleryActivity.templateURL = template;
                context.startActivity(intent);
            }
        });
        holder.pannel.setVisibility(View.GONE);
    } else {
        url = category_list.get(i).getImage_url();
        holder.thumbnail.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ((MainActivity) context).gotoCategoryHolder(i);
            }
        });
    }

    Glide
        .with(context)
        .load(url)
        .asBitmap()
        .diskCacheStrategy(DiskCacheStrategy.ALL)
        .into(new BitmapImageViewTarget(holder.thumbnail) {
            @Override
            public void onResourceReady(Bitmap bitmap, GlideAnimation anim) {
                super.onResourceReady(bitmap, anim);
                if (category_list != null) {
                    String panelColor = &quot;#&quot; + Integer.toHexString(Utils.getDominantColor(bitmap)).substring(2).toUpperCase();

                    holder.pannel.setBackgroundColor(Color.parseColor(panelColor));

                    String textColor = &quot;#&quot; + Integer.toHexString(Utils.
                            getContrastColor(panelColor.substring(1, panelColor.length())))
                            .substring(2).toUpperCase();

                    holder.nameView.setTextColor(Color.parseColor(textColor));
                    holder.nameView.setText(category_list.get(i).getName());
                }
            }
        });
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">onBindViewHolder</span>(<span class="pl-k">final</span> <span class="pl-smi">ImagesViewHolder</span> <span class="pl-s1">holder</span>, <span class="pl-k">final</span> <span class="pl-smi">int</span> <span class="pl-s1">i</span>) {

    <span class="pl-smi">String</span> <span class="pl-s1">url</span>;
    <span class="pl-k">if</span> (<span class="pl-s1">category_list</span> == <span class="pl-c1">null</span>) {
        <span class="pl-s1">url</span> = <span class="pl-smi">Utils</span>.<span class="pl-en">getImageUrl</span>(<span class="pl-s1">list</span>.<span class="pl-en">get</span>(<span class="pl-s1">i</span>).<span class="pl-en">getId</span>(), <span class="pl-s1">list</span>.<span class="pl-en">get</span>(<span class="pl-s1">i</span>).<span class="pl-en">getFormat</span>());


        <span class="pl-s1">holder</span>.<span class="pl-s1">thumbnail</span>.<span class="pl-en">setOnClickListener</span>(<span class="pl-k">new</span> <span class="pl-smi">View</span>.<span class="pl-smi">OnClickListener</span>() {
            <span class="pl-c1">@</span><span class="pl-c1">Override</span>
            <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onClick</span>(<span class="pl-smi">View</span> <span class="pl-s1">v</span>) {
                <span class="pl-k">if</span> (<span class="pl-smi">MainActivity</span>.<span class="pl-en">isDrawerOpened</span>()) {
                    <span class="pl-k">return</span>;
                }
                <span class="pl-smi">FSAdController</span>.<span class="pl-en">checkFsTriger</span>(<span class="pl-s1">context</span>);
                <span class="pl-smi">GalleryActivity</span>.<span class="pl-s1">loadedNumber</span> = <span class="pl-smi">GalleryFragment</span>.<span class="pl-c1">THIMBNAILS_NUMBER</span>;
                <span class="pl-smi">Intent</span> <span class="pl-s1">intent</span> = <span class="pl-k">new</span> <span class="pl-smi">Intent</span>(<span class="pl-s1">context</span>, <span class="pl-smi">GalleryActivity</span>.<span class="pl-k">class</span>);
                <span class="pl-s1">intent</span>.<span class="pl-en">putExtra</span>(<span class="pl-s">"position"</span>, <span class="pl-s1">i</span>);
                <span class="pl-smi">GalleryActivity</span>.<span class="pl-en">setImageList</span>(<span class="pl-s1">list</span>);
                <span class="pl-smi">GalleryActivity</span>.<span class="pl-s1">templateURL</span> = <span class="pl-s1">template</span>;
                <span class="pl-s1">context</span>.<span class="pl-en">startActivity</span>(<span class="pl-s1">intent</span>);
            }
        });
        <span class="pl-s1">holder</span>.<span class="pl-s1">pannel</span>.<span class="pl-en">setVisibility</span>(<span class="pl-smi">View</span>.<span class="pl-c1">GONE</span>);
    } <span class="pl-k">else</span> {
        <span class="pl-s1">url</span> = <span class="pl-s1">category_list</span>.<span class="pl-en">get</span>(<span class="pl-s1">i</span>).<span class="pl-en">getImage_url</span>();
        <span class="pl-s1">holder</span>.<span class="pl-s1">thumbnail</span>.<span class="pl-en">setOnClickListener</span>(<span class="pl-k">new</span> <span class="pl-smi">View</span>.<span class="pl-smi">OnClickListener</span>() {
            <span class="pl-c1">@</span><span class="pl-c1">Override</span>
            <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onClick</span>(<span class="pl-smi">View</span> <span class="pl-s1">v</span>) {
                ((<span class="pl-smi">MainActivity</span>) <span class="pl-s1">context</span>).<span class="pl-en">gotoCategoryHolder</span>(<span class="pl-s1">i</span>);
            }
        });
    }

    <span class="pl-smi">Glide</span>
        .<span class="pl-en">with</span>(<span class="pl-s1">context</span>)
        .<span class="pl-en">load</span>(<span class="pl-s1">url</span>)
        .<span class="pl-en">asBitmap</span>()
        .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">ALL</span>)
        .<span class="pl-en">into</span>(<span class="pl-k">new</span> <span class="pl-smi">BitmapImageViewTarget</span>(<span class="pl-s1">holder</span>.<span class="pl-s1">thumbnail</span>) {
            <span class="pl-c1">@</span><span class="pl-c1">Override</span>
            <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">Bitmap</span> <span class="pl-s1">bitmap</span>, <span class="pl-smi">GlideAnimation</span> <span class="pl-s1">anim</span>) {
                <span class="pl-en">super</span>.<span class="pl-en">onResourceReady</span>(<span class="pl-s1">bitmap</span>, <span class="pl-s1">anim</span>);
                <span class="pl-k">if</span> (<span class="pl-s1">category_list</span> != <span class="pl-c1">null</span>) {
                    <span class="pl-smi">String</span> <span class="pl-s1">panelColor</span> = <span class="pl-s">"#"</span> + <span class="pl-smi">Integer</span>.<span class="pl-en">toHexString</span>(<span class="pl-smi">Utils</span>.<span class="pl-en">getDominantColor</span>(<span class="pl-s1">bitmap</span>)).<span class="pl-en">substring</span>(<span class="pl-c1">2</span>).<span class="pl-en">toUpperCase</span>();

                    <span class="pl-s1">holder</span>.<span class="pl-s1">pannel</span>.<span class="pl-en">setBackgroundColor</span>(<span class="pl-smi">Color</span>.<span class="pl-en">parseColor</span>(<span class="pl-s1">panelColor</span>));

                    <span class="pl-smi">String</span> <span class="pl-s1">textColor</span> = <span class="pl-s">"#"</span> + <span class="pl-smi">Integer</span>.<span class="pl-en">toHexString</span>(<span class="pl-smi">Utils</span>.
                            <span class="pl-en">getContrastColor</span>(<span class="pl-s1">panelColor</span>.<span class="pl-en">substring</span>(<span class="pl-c1">1</span>, <span class="pl-s1">panelColor</span>.<span class="pl-en">length</span>())))
                            .<span class="pl-en">substring</span>(<span class="pl-c1">2</span>).<span class="pl-en">toUpperCase</span>();

                    <span class="pl-s1">holder</span>.<span class="pl-s1">nameView</span>.<span class="pl-en">setTextColor</span>(<span class="pl-smi">Color</span>.<span class="pl-en">parseColor</span>(<span class="pl-s1">textColor</span>));
                    <span class="pl-s1">holder</span>.<span class="pl-s1">nameView</span>.<span class="pl-en">setText</span>(<span class="pl-s1">category_list</span>.<span class="pl-en">get</span>(<span class="pl-s1">i</span>).<span class="pl-en">getName</span>());
                }
            }
        });
}</pre></div>