Android Glide: Show a blurred image before loading actual image

后端 未结 8 1101
谎友^
谎友^ 2021-02-01 06:37

I am developing an Android app which displays full screen images to the user. Images are fetched from the server. I am using Glide to show the image. But I want to display a ver

8条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-01 06:53

    use BitmapFactory.Options.inSamleSize to load a downsampled version of the image. Then load the bigger image and do a fade transition using a TransitionDrawable

    Hope this will Helps you ! Cheers !

提交回复
热议问题