Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public BitmapUtils(
     Context context, String diskCachePath, float memoryCachePercent, int diskCacheSize) {
   this(context, diskCachePath);
   globalConfig.setMemCacheSizePercent(memoryCachePercent);
   globalConfig.setDiskCacheSize(diskCacheSize);
 }
Ejemplo n.º 3
0
 public BitmapUtils(
     Context context, String diskCachePath, int memoryCacheSize, int diskCacheSize) {
   this(context, diskCachePath);
   globalConfig.setMemoryCacheSize(memoryCacheSize);
   globalConfig.setDiskCacheSize(diskCacheSize);
 }