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
11
votes
4 answers

Why won't Glide load an image from resource ID to my ImageView?

I've got all of the images I need for my app, and I'm trying to speed it up and make it silky smooth, so I have been using Glide to load the images and it works in other areas of my app but not in my viewpager. In my fragment I'm trying to load my…
Jacob Collins
  • 454
  • 2
  • 4
  • 9
11
votes
3 answers

Android Glide: How to download and cache bitmaps?

I am using Glide to download and cache images on Android. Everything works well except the fact that I don't want to load the bitmaps directly into the ImageView, I don't want to have the fade animation, neither image placeholders. All I want is to…
Zbarcea Christian
  • 9,367
  • 22
  • 84
  • 137
10
votes
1 answer

Glide 4 - ResourceDecoder on specific call

After going through all Glide documentation and StackOverflow questions and answers, I cannot find any information regarding applying resource decoder for a single Glide call in version 4. In version Glide 3, we can do…
Bach Vu
  • 2,298
  • 1
  • 15
  • 19
10
votes
2 answers

How to add authorization in header by Glide in Android Studio?

I am using Glide version = 4.7.1 I have no idea how to authenticate an image by glide. This code is what I did. I created: private static final String AUTHORIZATION = "ss-id=doa3cx8OV3aGLThRrpnh;"; private static final String ABC =…
user9981099
10
votes
3 answers

Load image with Glide to Google Maps Marker

I have an issue. I use Glide 3.8.0. I need to download image from server and put it to a marker on google maps. Glide.with(getBaseActivity()) .load(place.getIconUrl()) .asBitmap() .fitCenter() …
pligosv
  • 653
  • 1
  • 7
  • 19
10
votes
1 answer

Using RequestOptions in AppGlideModule with Glide 4

I used the `Glide library with AppGlideModule, version of library 4.1.1. Here is my glide module class: @GlideModule public class GlideUtil extends AppGlideModule { private final int IMAGE_CACHE_SIZE = 20 * 1024 * 1024; // 20 MB private…
Alex D.
  • 1,424
  • 15
  • 40
10
votes
4 answers

How to set tint color for ImageView loaded SVG image

I tried to load PNG image form drawable into ImageView, and set tint color for this ImageView with below code ⇒ it's working: imageView1.setImageResource(R.drawable.pngFile); imageView1.setColorFilter(getResources().getColor(R.color.colorAccent),…
Sonzero
  • 141
  • 2
  • 7
10
votes
2 answers

Android memory leak with Glide

I have an activity which loads pictures in ImageViews with glide. Here is a sample of my glide code: Glide.with(ImageVOne.getContext()) .load(geoInfo.getPhotoUrl1()) .skipMemoryCache(true) …
Alex9494
  • 1,588
  • 3
  • 12
  • 22
10
votes
2 answers

How to load URL image in android wear?

Right now I am using Glide-library to load the image in Android Wear. It doesn't load the image in most of the times. However, it loads image sometimes. Don't know what going wrong in my code. Note Wear is connected to the device via Bluetooth and…
Viraj Patel
  • 103
  • 6
10
votes
3 answers

Glide : get cached file location in Android/Java

I am using the Glide to display images in my app. Now I want to know the location where the Glide is storing the cached images downloaded from the urls. I am using below code to display image. Glide.with(mContext) …
android_griezmann
  • 3,757
  • 4
  • 16
  • 43
10
votes
1 answer

Glide load into SimpleTarget not honoring the specified width and height

I'm using Glide to load an image, resize it and save it to a file by means of a SimpleTarget. These images will be uploaded to Amazon S3, but that's besides the point. I'm resizing the images prior to uploading as to save as much user's…
Loudenvier
  • 8,362
  • 6
  • 45
  • 66
10
votes
3 answers

Load a remote image in a MenuItem using Glide

Usually if I want to load an image with Glide I would write the following: Glide.with(context) .load(theURLOftheImage) .error(R.drawable.ic_error_image) .into(theImageView); but what if I need to load the image of that URL into a…
AlvaroSantisteban
  • 5,256
  • 4
  • 41
  • 62
10
votes
2 answers

Loading image synchronously with Glide

I want to write an Espresso matcher that verifies that an `ImageView´ has a specific bitmap set. Since the app does its loading of images via Glide, I thought I have to do the same on the test side to account for cropping / centering before I can…
Thomas Keller
  • 5,933
  • 6
  • 48
  • 80
10
votes
4 answers

Glide resizing image via override does not resize the image

I'm using Glide to download and display image, however, when I tried to resize the image, it does not do so. I get random size (or perhaps its the actual size of the image). Here's the code I used for loading via Glide Glide.with(context) …
kishidp
  • 1,918
  • 6
  • 23
  • 29
10
votes
0 answers

How do I draw Bitmap on TextureView

I'm trying to play video on android with TextureView. Regarding video everithing works well. But MediaPlayer.prepare(); takes some time. So I would like to show some placeholder for that time. I'm trying to do it with Glide like this: public static…
oleg.semen
  • 2,901
  • 2
  • 28
  • 56