接口的使用
com.android.volley.toolbox.ImageLoader.ImageListener
-
com.android.volley.toolbox中ImageLoader.ImageListener的使用
修饰符和类型方法说明static ImageLoader.ImageListenerImageLoader.getImageListener(android.widget.ImageView view, int defaultImageResId, int errorImageResId) The default implementation of ImageListener which handles basic functionality of showing a default image until the network response is received, at which point it will switch to either the actual image or the error image.修饰符和类型方法说明ImageLoader.get(String requestUrl, ImageLoader.ImageListener listener) Returns an ImageContainer for the requested URL.ImageLoader.get(String requestUrl, ImageLoader.ImageListener imageListener, int maxWidth, int maxHeight) Equivalent to callingImageLoader.get(String, ImageListener, int, int, ScaleType)withScaletype == ScaleType.CENTER_INSIDE.ImageLoader.get(String requestUrl, ImageLoader.ImageListener imageListener, int maxWidth, int maxHeight, android.widget.ImageView.ScaleType scaleType) Issues a bitmap request with the given URL if that image is not available in the cache, and returns a bitmap container that contains all of the data relating to the request (as well as the default image if the requested image is not available).限定符构造器说明ImageContainer(android.graphics.Bitmap bitmap, String requestUrl, String cacheKey, ImageLoader.ImageListener listener) Constructs a BitmapContainer object.