Android Glide is a image loading library for Android that supports loading, caching, fetching, decoding, and displaying of images, animated GIFs, and video stills. Use this tag for questions involving the Glide library making sure to provide the version of the library used and the specific feature like [caching], [loading], or [animated-gif].
Questions tagged [android-glide]
2336 questions
10
votes
1 answer
BitmapTransformation in the Glide library not working as expected
I'm new to the Glide library, following the Transformations guide found here: https://github.com/bumptech/glide/wiki/Transformations
I'm trying to create a custom transformation, but when I place a breakline in the Transformation class's transform…

JMRboosties
- 15,500
- 20
- 76
- 116
9
votes
1 answer
How can I get drawable from glide? Actually i want to return drawable from glide which load image and put into imageview
Here is my code:
d.setBounds(15, 8, d.getIntrinsicWidth(), d.getIntrinsicHeight());
ImageSpan span = new ImageSpan(d,ImageSpan.ALIGN_BOTTOM) {}

kshitij
- 135
- 1
- 1
- 8
9
votes
4 answers
How to apply animation on cached image in Glide
I want to show the image using Glide animation. I'm downloading this image from the server. The animation is working fine when it downloads from the server but it's not working when the image is taken from Glide cache…

Sumit Bandekar
- 410
- 5
- 10
9
votes
5 answers
Can I preserve older versions of library used by a dependency?
I have an Android project where Glide v4 is one of its dependency.
This project has another dependency, let's call it dependency A , where it depends on Glide v3 instead.
I don't know if it matters, but dependency A can only be included as an…

Sira Lam
- 5,179
- 3
- 34
- 68
9
votes
1 answer
check image is loaded image(url) by glide
In my android app i have 4 url for one single image. to check if url 1 is broken then go to url 2 and the same way until the end.
i using Glide 4.3.1 for loading image like this :
private int checkAndShow4Image(Context context, View view, int…

DanialAbdi
- 183
- 1
- 4
- 17
9
votes
1 answer
Trying to build Android project with Glide package, throws "Unable to merge dex" error
I am running Android Studio 3.0. I am currently trying to make Glide version 4.3.0 work, but had the same issues with version 4.2.0.
My project runs fine without adding the Glide package dependencies in my build.gradle file, downloaded from here…

Alex F
- 2,086
- 4
- 29
- 67
9
votes
3 answers
Getting Image from Firebase Storage using Glide
I am trying to load an image from Firebase Storage using Glide but I am getting an error .
package com.kanishq.wallpaper;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import…

Kanishq Gupta
- 151
- 1
- 4
- 12
9
votes
2 answers
Glide and NotificationCompat.Builder setLargeIcon()
How to use Glide into NotificationCompat.Builder setLargeIcon(Bitmap icon)? I already looked into this tutorial but I don't want to use RemoteViews. I also want to get use of Glide.placeholder(int resource) and Glide.error(int resource) without…

Damia Fuentes
- 5,308
- 6
- 33
- 65
9
votes
4 answers
Glide Image extraction
I am using glide to extract a bitmap from the cache and save it elsewhere. The relevant function below (based on this post:) fails to trigger the extraction. In fact, the log line 'Log.d(TAG, "About to start extraction");' below never gets…

Lmwangi
- 2,486
- 1
- 19
- 26
9
votes
4 answers
android - image quality is low when using glide
I'm new to android developing. In my app, I have a horizontalScrollView that contains images. Later I have been using Picasso to load images from URL. Then I heard about glide so I switched to glide and now my image loading is fast but the quality…

Simon
- 461
- 1
- 5
- 23
9
votes
4 answers
Glide shrinks image on first load
When I load the image into the ImageView with Glide, it shrinks the image. When I rotate or reopen the same activity it has the right size. I already tried possible duplicate. I am already passing fix size to the ImageView inside the xml and I tried…

parohy
- 2,070
- 2
- 22
- 38
9
votes
5 answers
RecyclerView with StaggeredGridLayoutManager with images loading from Glide
I am having a problem showing RecyclerView with StaggeredGridLayoutManager whose item contain an imageview and the image is loaded in imageview using glide.
The problem i am facing is that after images getting loaded they are not staggered and are…

Passiondroid
- 1,573
- 1
- 16
- 28
9
votes
5 answers
Glide load thumbnail not working
I'm using Glide to load thumbnail from videos but it doesn't seem to be working on my app. The ImageView is just empty for some reason.
Glide.with(context)
.load(url)
.asBitmap()
.thumbnail(0.1f)
…

kishidp
- 1,918
- 6
- 23
- 29
9
votes
9 answers
Glide Process 'command 'git'' finished with non-zero exit value 128
I have downloaded Glide from Github and wanted to test the program on Android studio. But once i Clean the project, i have this error
Information:Gradle tasks [clean]
fatal: Not a git repository (or any of the parent directories): .git
FAILURE:…

michelletbs
- 809
- 2
- 9
- 19
9
votes
1 answer
Glide preload doesn't save in cache
I would like to preload images before they are showed to the user. I have a ViewPager where every page is an image. When the activity starts, it calls:
Glide.with(this).load(uri).preload();
After that all the images are preloaded (theoretically),…

fran
- 1,119
- 1
- 10
- 27