Image with gradient background cannot show correctly by Glide loading.
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
**Glide Version**: 4.12.0
**Integration libraries**: no
**Device/Android Version**: Google Pixel 4 XL, Android 10.
**Issue details / Repro steps / Use case background**:
When an image with a gradient background was loaded by Glide, the background could not show correctly.
If I directly set the drawable to the image view, the image can be shown correctly.
The image set by `imageView.setImageResource(R.drawable.test)`is:

The Glide loaded image is:

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```Kotlin
Glide
.with(this) // here `this` is an activity
.load(R.drawable.test)
.into(findViewById(R.id.image_view))
```
**Layout XML**:
```xml
```
**Stack trace / LogCat**:
Contributor guide
Research direction
Start by reproducing the Glide.load(R.drawable.test) call into the ImageView described in the issue, using the supplied layout and comparing it with direct drawable assignment on Android 10. Investigate why the gradient renders differently; done means the Glide-loaded image displays the gradient correctly without changing the intended ImageView usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100