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

Glide: show image with radius corners only on top

I use Glide. Here snippet: Glide.with(context).load(referenceUrl).into(holder.imageViewPhoto); OK. It's work fine. But I need image to show with radius corners only on TOP. Something like this: Is it possible by Glide?
Alex
  • 633
  • 1
  • 7
  • 18
20
votes
3 answers

How to use a view (shimmer) as a placeholder for an imageView (Glide)

I am using Glide to load images to my imageView (which are inside a recyclerview): Glide.with(image.context).load(url) .error(context.getDrawable(R.drawable.placeholder)) .into(image) I see that the Glide library also has a…
Mehdi Satei
  • 1,225
  • 9
  • 26
20
votes
6 answers

Glide 4.10.0 : java.lang.IllegalStateException: GeneratedAppGlideModuleImpl is implemented incorrectly

I am getting error while using Glide 4.10.0 This is the error java.lang.IllegalStateException: GeneratedAppGlideModuleImpl is implemented incorrectly. If you've manually implemented this class, remove your implementation. The Annotation processor…
Mohd Naushad
  • 514
  • 4
  • 15
20
votes
3 answers

how to use GlideModule on Glide 4?

I recently update my app to use Glide 4, to be precise, Glide 4.2.0. gradle: compile 'com.github.bumptech.glide:glide:4.2.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.2.0' compile…
Dika
  • 2,213
  • 4
  • 33
  • 49
20
votes
2 answers

Glide: onError Callback

I'm switching from Picasso to Glide. Everything works fine except I cannot find a method to get an error callback. I want to retrieve a Bitmap, pass it on and generate an Android Palette from it. Also, while an errorDrawable can be provided to a…
Androidicus
  • 1,688
  • 4
  • 24
  • 36
20
votes
8 answers

Android Glide: Show a blurred image before loading actual image

I am developing an Android app which displays full screen images to the user. Images are fetched from the server. I am using Glide to show the image. But I want to display a very small size blurred image before displaying the actual image. Once the…
Abhishek Batra
  • 1,539
  • 1
  • 18
  • 45
20
votes
10 answers

Why Glide blink the item ImageView when notifydatasetchanged

I am using Glide 3.7.0 with RecyclerView. The item view always blinks when refreshing (calling notifyDataSetChanged). Here is my code: Glide .with(context) .load(filepath) .diskCacheStrategy(DiskCacheStrategy.NONE) .skipMemoryCache(true) …
20
votes
1 answer

App random crashes with Fatal signal 7 (SIGBUS), code 2 or Fatal signal 11 (SIGSEGV), code 1

Context I'm creating an app that's supposed to show some images on a Fragment, most of them downloaded from the internet. I'm using Glide to handle that image loading for me on my CardViews and Fresco on my image slider (And this question on SO…
Mauker
  • 11,237
  • 7
  • 58
  • 76
20
votes
7 answers

Glide assert: java.lang.IllegalArgumentException: You must call this method on the main thread

Has anyone used Glide to fetch images from a background thread? I keep getting this assert: java.lang.IllegalArgumentException: You must call this method on the main thread but according to this thread, it should…
gmmo
  • 2,577
  • 3
  • 30
  • 56
19
votes
6 answers

Glide - javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found

I migrated the server from HTTP to HTTPS I have used self-signed certificate to send network requests with HttpUrlConnection and it worked but for image loading it is not working as I have used Glide for Image…
Lalit Sharma
  • 1,142
  • 1
  • 15
  • 32
19
votes
5 answers

glide image loading timeout increase

I am using glide to load images from URL. While I am fetching the images I am showing a loader in the image view. Some of the images being fetched are larger and therefore in slow internet connection timeout occurs and throws exception How can I…
Karthik K M
  • 619
  • 2
  • 9
  • 24
19
votes
5 answers

Android Glide placeholder size

I have a problem with Android Glide. I am trying to quickly swap my image, they just become all placeholder size, and my placeholder image is very low size. So what I need to do? Maybe I need to check if it's loaded or something, but I don't know…
TavoTevas
  • 201
  • 1
  • 2
  • 3
18
votes
7 answers

Unresolved reference: GlideApp in activity written in Kotlin

In short my problem is that I can't use GlideApp (generated API) in an activity written in Kotlin. Interesting enough that Android Studio sees the reference, i can open the generated GlideApp, there is code completion, but when I try to build it,…
Alex
  • 3,382
  • 2
  • 32
  • 41
18
votes
2 answers

Glide 4.3.1 override and placeholder features not work

I update my glide to 4.3.1 but all over I use glide the feature .override() and .placeholder() get error: cannot find symbol method. Glide.with(this) .load(imageUrl) .override(200, 200) …
Mohad Hadi
  • 1,826
  • 3
  • 24
  • 39
18
votes
2 answers

Unit test Glide: make sure ImageView has correct image

Android Studio 3.0 Beta 5 robolectric:3.3.1 I have a the following view holder that loads a image url using the glide library. I am trying to find a way to unit test this: public class MovieActorsViewHolder extends RecyclerView.ViewHolder { …
ant2009
  • 27,094
  • 154
  • 411
  • 609