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
12
votes
2 answers

Android : Cannot find symbol Class GlideDrawable

I'm having an issue with this project whenever I try to compile it displays the error Error: cannot find symbol class GlideDrawable please take a look at app: module dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) …
user9175219
12
votes
3 answers

Load ImageView from URL into RemoteView of a Home Screen Widget

I'm developing a simple Widget to my Android app based on the Google StackWidget sample: https://android.googlesource.com/platform/development/+/master/samples/StackWidget/src/com/example/android/stackwidget/StackWidgetService.java I'm using the…
12
votes
1 answer

Glide: log each request

Consider the code below: Glide.with() .load() .into(); Above Glide code is written in lots of file. Simply I want to log my remote_file_url or local_file_path in logcat. But I don't…
Moinkhan
  • 12,732
  • 5
  • 48
  • 65
12
votes
3 answers

Android Glide: prevent white image if the request fails

So I'm just interested if I could prevent Glide from loading a white (null) image into an ImageView if the url provided is wrong.. I'd like to keep the image that I provide in XML if it can't find the image (because it might be wrong due to user…
Leo Starić
  • 331
  • 1
  • 4
  • 16
12
votes
4 answers

Load image from SD card using Glide

I've been trying and searching for an answer for the past 5 hours. I'm storing image from google plus to local folder and using Glide library to load the image into imageview. the file uri is…
Shreyash Jain
  • 183
  • 1
  • 1
  • 8
12
votes
7 answers

I need to download several images to directory so that content can be accessed offline

I get some JSON data which contains some food menu items Please note: this is just a sample, there are more than 2 images sometimes and many more menu items in the array! { "menu": [ { "url": "/api/v1/menu/1", "name": "Best Food", …
Ersen Osman
  • 7,067
  • 8
  • 47
  • 80
12
votes
2 answers

Android Glide library not working with shared element transitions

I'm looking to adopt the Glide library in place of Universal Image Loader but I'm running into a problem with regards to shared element transitions. In my simple Sandbox I've created the following transition using UIL:…
JMRboosties
  • 15,500
  • 20
  • 76
  • 116
11
votes
3 answers

How to set default cross fade animation for Glide V4

With glide v4 default cross fade animation removed. I updated my Glide version to 4 and I want to set a default cross fade animation, not to set for every image load request. I tried to do it in AppGlideModule extended class which name is "Generated…
VolkanSahin45
  • 1,922
  • 12
  • 25
11
votes
2 answers

com.bumptech.glide.Registry$NoModelLoaderAvailableException: Failed to find any ModelLoaders

I am trying to load a custom model into Glide but getting this error: GlideExecutor: Request threw uncaught throwable com.bumptech.glide.Registry$NoModelLoaderAvailableException: Failed to find any ModelLoaders for…
X09
  • 3,827
  • 10
  • 47
  • 92
11
votes
2 answers

How to integrate Firebase with Glide ('using' method)

I'm trying to use Firebase integration with Glide and for some reason, Glide.using() cannot resolve this method. I did add: compile 'com.firebaseui:firebase-ui-storage:0.6.0' Into build.gradle and also: compile…
zb22
  • 3,126
  • 3
  • 19
  • 34
11
votes
4 answers

Glide: load image to push notifications

I am trying to load an image to a push notification using Glide but it says this: FATAL EXCEPTION: Thread-9730 Process: com.monkingme.monkingmeapp, PID: 24226 java.lang.IllegalArgumentException: You must call this method on the main thread at…
Damia Fuentes
  • 5,308
  • 6
  • 33
  • 65
11
votes
4 answers

How to reduce the size of image before uploading it to firebase storage?

I have made an social app for image and video sharing.However,its taking too much time for loading the image.I am using the glide library.Please, tell me how can I reduce the size of image picked up from gallery without considerable change in…
Shubh.J
  • 145
  • 1
  • 2
  • 12
11
votes
6 answers

android : GIF animation cycle complete Listener

I have one GIF image and want to load in Splash Screen. I came across few libraries like android-gif-drawable and Glide Is there any way I can listen for one animation cycle complete ? I mean once animation cycle is complete(whole animation is…
Chintan Soni
  • 24,761
  • 25
  • 106
  • 174
11
votes
2 answers

How to rotate image using glide library? (Like in picasso)

I am trying to rotate the image using glide library. Previously, was able to do with Picasso (due to an issue, I moved to glide). Now I am missing rotate functionality in glide. I tried using transformations but didn't work. // Code used public…
Ravi Gadipudi
  • 1,446
  • 1
  • 17
  • 30
11
votes
5 answers

RecyclerView Recycled ViewHolder Image View wrong size

I have a recycler view with different View Holders. A couple of view holders have image views which I pass into Glide to display images. The problem is, when the recycler view starts recycling views, the imageview width/height are that of the…
DJ-DOO
  • 4,545
  • 15
  • 58
  • 98