예제 #1
0
 public static BitmapUtils create(
     Context ctx, String diskCachePath, float memoryCachePercent, int diskCacheSize) {
   if (instance == null) {
     instance = new BitmapUtils(ctx.getApplicationContext(), diskCachePath);
     globalConfig.setMemCacheSizePercent(memoryCachePercent);
     globalConfig.setDiskCacheSize(diskCacheSize);
   }
   return instance;
 }
예제 #2
0
 public BitmapUtils(
     Context context, String diskCachePath, float memoryCachePercent, int diskCacheSize) {
   this(context, diskCachePath);
   globalConfig.setMemCacheSizePercent(memoryCachePercent);
   globalConfig.setDiskCacheSize(diskCacheSize);
 }
예제 #3
0
 public BitmapUtils(
     Context context, String diskCachePath, int memoryCacheSize, int diskCacheSize) {
   this(context, diskCachePath);
   globalConfig.setMemoryCacheSize(memoryCacheSize);
   globalConfig.setDiskCacheSize(diskCacheSize);
 }