material-components / material-components/material-components-android

[ShapeableImageView] Can't display FB Shimmer with Glide inside ShapeableImageView

Open
#2,551 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Feature: Shape
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:** Hi, I need to display shimmer loader to the ShapeableImageView using placeholder/error method from Glide. But If I compared it to ImageView or AppCompatImageView, the shimmer appears properly

**Expected behavior:**
![Screenshot_1644052615](https://user-images.githubusercontent.com/10376354/152636181-0609e3da-5912-4edf-8e5c-bd46abcc0db4.png)

expected behavior like ImageView or AppCompatImageView, shown as the below the black circle

**Source code:** here the code: [kotlin](https://github.com/andhikayuana/reproduce-shapeableimageview/blob/master/app/src/main/java/id/yuana/demo/shimmer/MainActivity.kt) | [xml](https://github.com/andhikayuana/reproduce-shapeableimageview/blob/master/app/src/main/res/layout/activity_main.xml)

**Android API version:** 31

**Material Library version:** 1.5.0

**Device:** Android Emulator Pixel 4 API 29

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Kotlin reproduction in app/src/main/java/id/yuana/demo/shimmer/MainActivity.kt and its layout at app/src/main/res/layout/activity_main.xml. Run the example with Material Library 1.5.0 on Android API 29 or 31, compare ShapeableImageView with ImageView and AppCompatImageView, and verify that the Glide placeholder or error shimmer displays in the expected position.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.