Skip to content

Images become blurry when using a specific placeholder with adjustViewBounds=true #5650

@qweenhool

Description

@qweenhool

When I load images using the code below, the images become blurry, as shown in the screenshot.

<ImageView
    android:id="@+id/iv_img1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:adjustViewBounds="true"
    android:layout_marginLeft="15dp"
    android:layout_marginRight="15dp"
    android:scaleType="fitXY"
    android:visibility="visible" />

Glide.with(this).load("https://rmt-1.oss-cn-hangzhou.aliyuncs.com/image/test.png").placeholder(R.drawable.ui_default_img).error(R.drawable.ui_default_img).into(iv_img1);

You can download the ui_default_img.9.png placeholder image from the following URL:
https://rmt-1.oss-cn-hangzhou.aliyuncs.com/image/ui_default_img.9.png

The screenshot below shows the issue. It's a bit blurry compared to the original.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions