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
9
votes
5 answers
How to fix "canvas: trying to use a recycled bitmap error"?
I'm creating a RecyclerView to show a Grid of pictures. When selecting one of them, it should open a new activity with a transition.
I'm using Glide library to load the pictures and the transition looks awful because it reloads the picture in the…

Jahir Fiquitiva
- 1,459
- 3
- 23
- 47
9
votes
2 answers
How can you use a loading placeholder that is an animated spinner with image loaders like Glide, Picasso etc?
I am trying to insert a generic loading circle as placeholder while an image is being loaded with an image loader library like Glide or Picasso.
I cannot for the life of me find out how you are supposed to create a rotating drawable from xml.
I…

A. Steenbergen
- 3,360
- 4
- 34
- 51
8
votes
3 answers
Glide: Preload images in memory cache (with or without disk cache)
I am using
glide.load(url)
.diskCacheStrategy(DiskCacheStrategy.ALL)
.preload()
to preload images.
However, I need them to be in memory and not just on disk, so it's loaded in ImageView more quickly, the way it does when I revisit the…

Rahul Tiwari
- 6,851
- 3
- 49
- 78
8
votes
5 answers
Show Blur Image Using Glide library
i'm trying to show blur image using Glide but instead showing error images.i have no idea why it is show error image.URL is working fine but still it is showing error image only
here is my code
Glide.with(context)
…
user10299469
8
votes
1 answer
How to retry image loading, if Glide fails?
I am using this code to load the image from network.
I am making multiple request at the same time due to which the error comes FileNotFound but the file actually exist on server.
Therefore i want to ask that how can i retry the glide request if…

Ishmal Ijaz
- 5,317
- 3
- 11
- 17
8
votes
1 answer
Glide 4.7.1 listener not working for onResourceReady method and Exception listener
there!
I'm using glide to load images in my app. Previously I used Picasso and it worked but after migrating to the Glide (v4.7.1) I'm not able to use listener to get state of the resource. I attached code below please help me in this…

Nithis Kumar
- 278
- 2
- 5
- 21
8
votes
1 answer
Glide - What is "isImagePosition(position)" in their documentation?
I'm trying to use Glide within my RecyclerView, and I've got a question regarding the code they used in their documentation. Code is shown below:
public void onBindViewHolder(ViewHolder holder, int position) {
if (isImagePosition(position)) {
…

Chao Li
- 175
- 10
8
votes
0 answers
Glide RoundedCorners not works
I am using Glide v4 to load image from internet. I transform the loaded image to be rounded corners. Sometime it doesn't work. I dont have any idea why. Any help would be appreciated.
val photoCornerRadius = 30
GlideApp.with(context)
…

zihadrizkyef
- 1,849
- 3
- 23
- 46
8
votes
4 answers
failed to resolve glide, now 3rd-party Gradle plug-ins may be the cause
Everything working fine before updating android studio 3.0.1, but after updating android studio I am stuck with
Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018
Failed to…

Lalit Jadav
- 1,409
- 1
- 15
- 38
8
votes
1 answer
Canvas: trying to draw too large(144609280bytes) bitmap, at android.view.DisplayListCanvas.throwIfCannotDraw
I get image from a web service, i do following to display it in imageView.
Picasso.with(getApplicationContext()).load(imageURL).fit().centerCrop().into(ivNews);
2 days ago a 2048X1600 resolution images was uploaded on server, and all of sudden app…

dev90
- 7,187
- 15
- 80
- 153
8
votes
4 answers
Failed to resolve: com.android.volley:volley:1.1.0 ....glide:3.7.0
'gradle' 'import' was done.
Then I got a problem. Help.
D:\bg.jou\GanggoContacts\build.gradle
Error:(25, 13)
Failed to resolve: com.android.volley:volley:1.1.0
Show in…

최범규
- 81
- 1
- 1
- 4
8
votes
0 answers
Implements Glide offline mode
I'm writing an Android app and I need to have an offline mode there, that means that I need to download all images from the back-end and in case I have no Internet connection I will be able to show them to the user. I read the official documentation…

Maxim
- 101
- 1
- 6
8
votes
2 answers
Glide crash because of context 4.3.1
In the new version of the Glide 4.3 I'm trying to use it but it crash whenever I use it and whatever context I passed to it.
this is the error showed to me
java.lang.AbstractMethodError: abstract method "void…

Sattar
- 2,453
- 2
- 33
- 47
8
votes
2 answers
Loading image with glide while server returns base64
When I load an image with something like this:
String url = "https://example.com/user/123123/profile_pic"
Glide.with(context).load(url).into(imageView);
server response is in base64 and glide doesn't handle it by default
My current solution:
load…

Tomas
- 85
- 1
- 8
8
votes
4 answers
Android: Glide not showing large image from URL
I'm trying to load a large hi-res (3225x4800) image from URL into glide for a newspaper company. The image I wanted to load is this High Res Image.
String url =…

OBL
- 367
- 1
- 4
- 13