Android Glide: Show a blurred image before loading actual image

后端 未结 8 1110
谎友^
谎友^ 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:42

    Glide.with(context.getApplicationContext())
                            .load(Your Path)   //passing your url to load image.
                            .override(18, 18)  //just set override like this
                            .error(R.drawable.placeholder)
                            .listener(glide_callback)
                            .animate(R.anim.rotate_backward)
                            .centerCrop()
                            .into(image.score);
    

提交回复
热议问题