Resize images with Glide in a ImageView Android

前端 未结 6 1230
爱一瞬间的悲伤
爱一瞬间的悲伤 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:48

    Override must be accessed via RequestOptions in the most recent version of Glide 4.x. You can add RequestOptions through apply()

    Glide
        .with(context)
        .load(path)
        .apply(new RequestOptions().override(600, 200))
        .into(imageViewResizeCenterCrop);
    

提交回复
热议问题