Questions tagged [android-glide]

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].

2336 questions
57
votes
7 answers

Glide does not resolve its method

Today I'm trying to use Glide image loader in my android application while using this I had facing method not resolving problem. Glide .with(this) .load(R.drawable.image_default_profile_picture) .into(mUserImage); This code working…
user3528954
  • 867
  • 3
  • 10
  • 17
54
votes
7 answers

How to fit Image into ImageView using Glide

My concern is how to fit image using android:scaleType="fitXY" into image using Glide. My ImageView is
N J
  • 27,217
  • 13
  • 76
  • 96
54
votes
7 answers

Glide listener doesn't work

I'm using Glide to load images and I added a listener to know when resource is ready or if there was an error of any type: Glide.with(mContext) .load(url) .placeholder(R.drawable.glide_placeholder) // use dontAnimate and not crossFade to…
Giorgio Antonioli
  • 15,771
  • 10
  • 45
  • 70
53
votes
1 answer

Difference DiskCacheStrategy in Glide v4

I am using Glide 4.1.1 in one of my android application. I am using it with below code and not facing any issue in application. Glide.with(context) .load(constant.BASE_URL+"images/"+data.getPicture()) .apply(new…
Priya
  • 1,602
  • 4
  • 22
  • 37
51
votes
6 answers

Glide load local image by Uri.

I'm trying to use Glide to load an image from local storage with no success. Glide.with(mContext) .load(pictureUri) // Uri of the picture .transform(new CircleTransform(..)) .into(profileAvatar); This is the error I…
Tudor Luca
  • 6,259
  • 2
  • 29
  • 44
49
votes
5 answers

Preload multiple images with Glide

We are trying to preload images into cache memory to load them later (the images are located in the Asset folder of the application) What we tried: Glide.with(this) .load(pictureUri) …
An-droid
  • 6,433
  • 9
  • 48
  • 93
47
votes
8 answers

Error "You must not call setTag() on a view Glide is targeting" when use Glide

I use Glide library inner custom adapter view in my apps. But I have Error : "You must not call setTag() on a view Glide is targeting" This part of my code : @Override public View getView(int position, View view, ViewGroup container) { …
Amay Diam
  • 2,561
  • 7
  • 33
  • 57
46
votes
13 answers

Is there a way to load image as bitmap to Glide

Im looking for a way to use bitmap as input to Glide. I am even not sure if its possible. It's for resizing purposes. Glide has a good image enhancement with scale. The problem is that I have resources as bitmap already loaded to memory. The only…
Maher Abuthraa
  • 17,493
  • 11
  • 81
  • 103
46
votes
6 answers

Recyclerview Adapter and Glide - same image every 4-5 rows

I have this problem - just for testing purposes I added ParseFile to one of ParseObject from received list. Instead of showing it only in that row it shows every 4-5 rows, sometimes more, sometimes less. I supspect that recycling view have something…
jean d'arme
  • 4,033
  • 6
  • 35
  • 70
45
votes
6 answers

Resize images with Glide in a ImageView Android

I have a lot of doubts about the treatment of the images in android, and I was hoping to see if you could solve them. At this point I have an image that occupies 320 dp high, and match_parent width, which is around 60% of the screen. This image of…
Traif
  • 671
  • 2
  • 6
  • 12
44
votes
8 answers

Set Background Image to Relative Layout using Glide in Android

How can I do this using Glide? I want to cache image to use it another time also. Thanks in advance.
nuhkoca
  • 1,777
  • 4
  • 20
  • 44
44
votes
3 answers

Getting black ImageView using Picasso and Glide

The problem I'm writing an Android app that's supposed to have a "Slideshow" feature on it. I've found this nice library, based on Picasso, that does exactly what I wanted, and it worked just fine most of the times. Problem is, sometimes my images…
Mauker
  • 11,237
  • 7
  • 58
  • 76
43
votes
18 answers

class com.bumptech.glide.load.engine.GlideException: Failed to load resource

I am trying to load an image into imageView through Glide. But the image is not loaded - I get an error. I'm using the following code GlideApp.with(context) .load(itemData.getThumbnailUri()) .placeholder(R.mipmap.koya_logo_white) …
narender sharma
  • 561
  • 1
  • 4
  • 7
42
votes
5 answers

How to set OkHttpClient for glide

I am using Glide to load images, the issue I'm facing is that when i run app on slow internet connection I'm getting SocketTimeOutException. So to solve this issue i want to use a custom OkHttpClient so that I can change the timeout of HttpClient…
user2934930
  • 1,076
  • 2
  • 12
  • 26
40
votes
1 answer

How to load image from URL in Jetpack Compose?

Well, I am studying the Compose UI and I am stucking in basic things. One of them is show a image from URL with Glide. I have tried the below code but the delegates (onResourceReady and onLoadCleared) are not being called. Did I miss…
LMaker
  • 1,444
  • 3
  • 25
  • 38