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

Loading large number of items in recycler view

I have a recycler view within a fragment and basically I m trying to load song list in the recycler view .Each row of recycler view contains an imageview (for album art) and textview ( for song name). I am having trouble when the size of the dataset…
14
votes
2 answers

I used Glide library to load image into imageView and I don't know how to make image pinch to zoomable

public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //Variables ImageView imageView; …
Towelie
  • 197
  • 1
  • 3
  • 11
14
votes
4 answers

Shared Element with scaleType centerCrop transition is jumpy

I'm trying to implement a shared elements transition when 2 ImageViews from one screen go to the next screen. one of the images has a scaleType of centerCrop on both screen. The problem I'm facing is that when the transition starts the image is…
14
votes
3 answers

Glide loading images each time when scrolling recyclerview

I have a RecyclerView and each item of RecyclerView is having ImageView. I am loading the image in that ImageView using Glide, when I scroll down the RecyclerView it loads images and this is fine, but when I again srcoll up the RecyclerView it again…
Prithniraj Nicyone
  • 5,021
  • 13
  • 52
  • 78
13
votes
4 answers

Glide cache image on disk on background thread

I want to use Glide to eagerly download images and cache them on disk for a future use. I want to call this functionality from a background thread. I've read Glide's caching documentation, but it doesn't explain how to download the image without…
Vasiliy
  • 16,221
  • 11
  • 71
  • 127
13
votes
1 answer

Glide clear() method can't be resolved

I am trying to fix OutOfMemoryException's in my Android app, in my recyclerView I want to write: @Override public void onViewRecycled(final ViewHolder viewHolder) { Glide.clear(viewHolder.getImageView()); } But I get the error: error: cannot…
EllieBubbles
  • 133
  • 1
  • 5
13
votes
5 answers

Getting Bitmap from Image using Glide in android

I want to get the bitmap from an image using Glide. I am doing the following - Bitmap chefBitmap = Glide.with(MyActivity.this) .load(chef_image) .asBitmap() .into(100, 100) .get(); It used to work with the previous Glide version. But it does not…
Anupam
  • 2,845
  • 2
  • 16
  • 30
13
votes
1 answer

Fragment BackStack clears after loading the Image using Glide Image Library

I have used Glide for image loading (Image which is inside my fragment). And handle the fragment backstack on backpress for navigating between the fragments. After loading the image my fragment backstack replaces with following…
Somasundaram NP
  • 1,018
  • 1
  • 12
  • 36
13
votes
2 answers

Memory not freeing after fragment is removed

I have a Fragment which has a RecyclerView. In this RecyclerView, I may occasionally download and display images (loaded with Glide into ImageView. So when I open the Fragment, used memory may sometimes jump from around 30MB to around 100MB or even…
Guy
  • 6,414
  • 19
  • 66
  • 136
13
votes
2 answers

Glide make ImageView wrap_content useless and no animatiion using target

I'm load a picture using Glide in my project, but I found a strange thing. When I use into(ImageView), the ImageView displays not the same with what when using into(new BitmapImageViewTarget(centerImageView)): This is my layout:
L. Swifter
  • 3,179
  • 28
  • 52
13
votes
4 answers

Glide Cache does not persist when app is killed

I'm monitoring my web calls with Charles. I have a GlideModule changing cache folder by overriding applyOption(...) like this : @Override public void applyOptions(Context context, GlideBuilder builder) { builder.setDiskCache( …
Magnas
  • 869
  • 1
  • 5
  • 18
13
votes
5 answers

Incorrect image rendered with Glide library

I am using the glide library in my android project to fetch and display images. Earlier I was using version 2.0.5 and facing rendering issue. The problem was that the wrong images were rendering. I have updated library to 3.3 version and it now…
Manish
  • 983
  • 1
  • 9
  • 27
12
votes
3 answers

Using Glide, how can I go over each frame of GifDrawable, as Bitmap?

Background In a live wallpaper, I have a Canvas instance that I wish to draw GIF/WEBP content into, which was loaded via Glide. The reason I wish to do it with Glide, is that it provides some advantages over a solution I've found in the past for the…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
12
votes
4 answers

GlideDrawableImageViewTarget not found in Glide-4

Why GlideDrawableImageViewTarget is not found in Glide4+? What is the alternative? My code: import com.bumptech.glide.request.target.GlideDrawableImageViewTarget; Glide.with(getContext()) .load(R.drawable.loader_gif_image) …
Anu Pramod
  • 304
  • 1
  • 3
  • 12
12
votes
7 answers

Using Firebase Storage image with Glide

There are tons of duplicated answers I had tried almost all of them but I am still not able to use Firebase storage image with Glide. First of all I am using docs FirebaseStorage storage = FirebaseStorage.getInstance(); StorageReference…
mehmet
  • 1,558
  • 5
  • 30
  • 41