Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Volley : ImageRequest deprecated

I'm on Android Studio version 1.4. I'm using the Android Volley library (I use the mcxiaoke mirror here). But the ImageRequest is deprecated. The code still works but deprecated. Has anyone found an alternative for this?

I've search for this issue in Google but didn't find any solution.

Screenshot 1

like image 435
kid Avatar asked Oct 22 '15 01:10

kid


1 Answers

I think the class is not deprecated but the constructor that you are using is deprecated.

use this constructor instead of this one

Usage example :

ImageRequest request = new ImageRequest(
                             url, myResponseListener, maxWidth,
                             maxHeight, scaleType, Config.RGB_565, myErrorListener);
like image 172
Niko Adrianus Yuwono Avatar answered Sep 28 '22 16:09

Niko Adrianus Yuwono