Glide: XiaoMi4 Glide first open app load ImageView show white border

Created on 6 Jun 2016  路  8Comments  路  Source: bumptech/glide

Glide Version: 3.7.0

Integration libraries:

Device/Android Version: android6.0 XiaoMi4

Issue details / Repro steps / Use case background:XiaoMi4 use Glide first open app load ImageView picture, have white border, no kill app process, just normal. if kill process restart app also show ImageView white border, no kill process reopen app no show white border

Glide load line / GlideModule (if any) / list Adapter code (if any):


        Glide.with(imageView.getContext()).load("http://baidu.com/xxxxxxx")
                .centerCrop()
                .placeholder(R.drawable.miss_image)
                .diskCacheStrategy(DiskCacheStrategy.SOURCE)
                .crossFade()
                .into(imageView);

Layout XML:

 <ImageView
            android:id="@+id/headerBgImageView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerCrop"
            android:src="@drawable/bg4"/>
>

image

image

image

question

All 8 comments

If you remove change crossFade to dontAnimate does that make his problem go away?

@TWiStErRob remove crossFade , can't solve this problem

Removing crossFade() is the same as having crossFade(), that's the default. Did you also add .dontAnimate()?

@TWiStErRob
qq 20160624163632
I have the similar problem. It happened when I every time launch activity and first time loading image. If I refresh data from server and use glide to load the image again, then it works fine.

        <ImageView
            android:id="@+id/activity_theme_list_adapter_item_logo_iv"
            android:layout_width="105dp"
            android:layout_height="70dp"
            android:scaleType="centerCrop"/>

@cantalou yours always has a border, the weird thing is that the first time it is squashed a little.

@TWiStErRob thank you

@WuZhenXing so did you solve it?

@TWiStErRob YEAH!!!! thank u

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kenneth2008 picture kenneth2008  路  3Comments

Ncit picture Ncit  路  3Comments

billy2271 picture billy2271  路  3Comments

PatrickMA picture PatrickMA  路  3Comments

technoir42 picture technoir42  路  3Comments