Exemplo n.º 1
0
 public static BitmapUtils create(Context ctx, String diskCachePath, int memoryCacheSize) {
   if (instance == null) {
     instance = new BitmapUtils(ctx.getApplicationContext(), diskCachePath);
     globalConfig.setMemoryCacheSize(memoryCacheSize);
   }
   return instance;
 }
Exemplo n.º 2
0
 public BitmapUtils(
     Context context, String diskCachePath, int memoryCacheSize, int diskCacheSize) {
   this(context, diskCachePath);
   globalConfig.setMemoryCacheSize(memoryCacheSize);
   globalConfig.setDiskCacheSize(diskCacheSize);
 }