Resize images with Glide in a ImageView Android

前端 未结 6 1221
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-14 16:24

I have a lot of doubts about the treatment of the images in android, and I was hoping to see if you could solve them.

At this point I have an image that occupies 320

6条回答
  •  旧巷少年郎
    2020-12-14 16:47

    in glide 4.x 'override' is in 'apply' :

    Glide.with(getBaseContext())
     .load(path)
     .apply(RequestOptions.placeholderOf(R.mipmap.no_wifi)
     .error(R.mipmap.no_wifi)
     .override(500,500))
     .into(mImageView);
    

提交回复
热议问题