How to download an Image by using Volley?

后端 未结 2 1951
轮回少年
轮回少年 2021-01-13 00:42

I am Trying to download an Image into an ImageView by using the Volley Library.
I inject the response of the Volley Library into the ImageView, but I am not getting the

2条回答
  •  别那么骄傲
    2021-01-13 01:00

    Use this constructor version:

    new ImageRequest(url, myResponseListener, maxWidth,
                     maxHeight, scaleType, Config.RGB_565, myErrorListener);
    

    This constructor isn't deprecated in Volley ImageRequest.

提交回复
热议问题