Created
June 5, 2013 19:01
-
-
Save rdrobinson3/5716282 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void init(Context context, String uniqueName, int cacheSize, CompressFormat compressFormat, int quality, CacheType type){ | |
switch (type) { | |
case DISK: | |
mImageCache= new DiskLruImageCache(context, uniqueName, cacheSize, compressFormat, quality); | |
break; | |
case MEMORY: | |
mImageCache = new BitmapLruImageCache(cacheSize); | |
default: | |
mImageCache = new BitmapLruImageCache(cacheSize); | |
break; | |
} | |
mImageLoader = new ImageLoader(RequestManager.getRequestQueue(), mImageCache); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment