bumptech / bumptech/glide

How to set placeholder size same as image

Open
#4,564 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

**Glide Version**:4.12.0

**Device/Android Version**:Pixel 3 XL API 29 AVD

**Issue details / Repro steps / Use case background**:
I want to set the placeholder same size as the image after it load. And I have the image width and height of the coverUri, what should I do? And the layout is a viewholder of RecyclerView.

**Glide load line:**
```java
Glide.with(viewHolder.itemView.getContext())
.load(video.coverUri)
.placeholder(circularProgressDrawable)
.into(viewHolder.mImageView);
```

**Layout XML**:
```xml



```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.