Retrofit API to retrieve a png image

后端 未结 8 1280
我在风中等你
我在风中等你 2020-12-02 20:32

Hi I am new to Retrofit framework for Android. I could get JSON responses from REST services using it but I don\'t know how to download a png using retrofit. I am trying to

8条回答
  •  暖寄归人
    2020-12-02 21:17

    Retrofit is a REST library, you can use Retrofit only to get image URL but for displaying Image you should use Picasso: http://square.github.io/picasso/

提交回复
热议问题