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

Glide - call method after fallback or error when trying load photo

Glide - call method after fallback or error when trying load photo. Hi! Is there any a way to check if Glide load photo from link or use fallback/error when link isn't valid or photo isn't available? I mean, I want to call a method (load other…
y07k2
  • 1,898
  • 4
  • 20
  • 36
7
votes
4 answers

Error:Failed to resolve: com.github.bumptech.glide:glide:4.0.0-SNAPSHOT

Build.gradle(Module:App) apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '23.0.3' defaultConfig { applicationId "com.example.beetel.App" minSdkVersion 21 targetSdkVersion…
PN10
  • 1,888
  • 3
  • 23
  • 34
7
votes
1 answer

Glide placeholder vector drawable resource not found exception

Recently I am trying to add Vector Drawable in my work. I am using glide to set my drawables. Here is my code : Glide .with(mContext) .load(resDrawable) .placeholder(placeHolderResDrawable) …
Sayem
  • 4,891
  • 3
  • 28
  • 43
7
votes
1 answer

Glide with okhttp3 integration java.lang.NoClassDefFoundError

I am using okhttp3 with glide so I have added the integration part as well. compile 'com.squareup.okhttp3:okhttp:3.2.0' compile 'com.github.bumptech.glide:glide:3.6.1' compile 'com.github.bumptech.glide:okhttp-integration:1.4.0@aar' I have even…
Nilesh Deokar
  • 2,975
  • 30
  • 53
7
votes
0 answers

Get image from cache in glide

How can I get the image bitmap from cache in glide just like universal image loader? Here is an Example. In universal image loader we can do this. String mCache=MemoryCacheUtil.generateKey(uri,getImageSize(imageView)); return…
7
votes
1 answer

How to stop Glide upscaling?

I am using the Glide image loading library and I'm having issues when it comes to resizing bitmaps. When using the following code: Glide.with(getActivity()) .load(images.get(i)) .asBitmap().centerCrop() .into(new…
Jack
  • 2,043
  • 7
  • 40
  • 69
7
votes
5 answers

How to load GIF image from drawable folder into ImageView using glide?

I have to show load GIF image from drawable to ImageView using glide.I have tried with following. Glide.with(LoginActivity.this) .load(getResources().getDrawable(R.drawable.bg_gif)).asGif() .crossFade() …
Stella
  • 1,817
  • 6
  • 30
  • 55
7
votes
1 answer

getDrawable() gives null object while trying to get bitmap from imageview

I am using glide for imageview and I want to get bitmap from that imageview-- ImageView imageView = (ImageView) findViewById(R.id.dp); Glide.with(this).load("http://graph.facebook.com/1615242245409408/picture?type=large").into(imageView); Bitmap…
Mayank Jindal
  • 355
  • 5
  • 15
7
votes
6 answers

Glide not loading image from memory at the first time when rotating (orientation change), and after that it is loading from memory

Glide not loading image from memory at the first time when rotating (orientation change), and after that it is loading from memory. I have tried to increase the memory size, the bitmap pool size, all kinds of caching strategies... nothing seemed to…
oznus
  • 2,446
  • 2
  • 25
  • 18
7
votes
6 answers

Glide Multiple transformations in Android

I've been using Glide to load images in my app. I've a custom transformation which I'm using while loading an image in ImageView. The problem is I want to apply my custom transformation & centerCrop both on the image fetched. But Glide is using only…
Anjani
  • 1,533
  • 3
  • 15
  • 26
7
votes
0 answers

ImageView's wrap_content not working with Glide

I'm testing the glide for loading the images in my project. I created the following layout
Addev
  • 31,819
  • 51
  • 183
  • 302
7
votes
1 answer

Find and load cached Image in Glide

I am new in glide and want to migrate my app from universalimageloader to glide. I want to convert cached image from the disk into image file, and show it into an ImageView. When I use universalimageloader, I can do it easily with this way: File…
ikhsanudinhakim
  • 1,554
  • 16
  • 23
7
votes
2 answers

ImageView refresh with Glide

I have one ImageView and one image loaded in it with Glide: Glide.with(ImageView.getContext()) .load(url) .dontAnimate() .placeholder(R.drawable.placeholder) .signature(stringSignature) .into(new…
Tomas
  • 4,652
  • 6
  • 31
  • 37
6
votes
3 answers

Zoom and Mask using Glide

I'm just looking to see if anyone can point me in the right direction to learning how to accomplish this using Glide... We have a page with content. Content is displayed as a single image (think: image of magazine page) In easy reading mode, I…
Psest328
  • 6,575
  • 11
  • 55
  • 90
6
votes
1 answer

java.lang.IllegalStateException: You cannot call Glide.get() in registerComponents(), use the provided Glide instance instead -- Glide Version 4.9.0

Migrated from Gilde 3.7.0 to Glide 4.9.0. Defined my MyAppGlideModule as below. @GlideModule public class MyAppGlideModule extends AppGlideModule { private static final int IMAGE_DISK_CACHE_MAX_SIZE = 250 * 1024 * 1024; @Override …
Ankit Kumar
  • 3,663
  • 2
  • 26
  • 38