/** 销毁Http请求框架,释放资源 */ public static synchronized void destroy() { if (requestQueue != null) { requestQueue.stop(); requestQueue = null; } ImageViewUtils.destroy(); }
/** 初始化http请求框架 */ public static synchronized void init(Context context) { if (requestQueue != null) { requestQueue.stop(); } requestQueue = newRequestQueue(context); requestTag = requestTag == null ? new AtomicInteger() : requestTag; ImageViewUtils.init(); }
public static DrawableLoader getDrawableLoader() { return ImageViewUtils.getDrawableLoader(); }
public static DrawableLoader.ImageCache getImageCache() { return ImageViewUtils.getImageCache(); }