Java 类com.nostra13.universalimageloader.core.DefaultConfigurationFactory 实例源码

项目:MutiPhotoChoser    文件:MainActivity.java   
private void initImageLoader() {
    if (!ImageLoader.getInstance().isInited()) {
        DisplayImageOptions.Builder displayBuilder = new DisplayImageOptions.Builder();
        displayBuilder.cacheInMemory(true);
        displayBuilder.cacheOnDisk(true);
        displayBuilder.showImageOnLoading(com.ns.mutiphotochoser.R.drawable.default_photo);
        displayBuilder.showImageForEmptyUri(com.ns.mutiphotochoser.R.drawable.default_photo);
        displayBuilder.considerExifParams(true);
        displayBuilder.bitmapConfig(Bitmap.Config.RGB_565);
        displayBuilder.imageScaleType(ImageScaleType.EXACTLY);
        displayBuilder.displayer(new FadeInBitmapDisplayer(300));

        ImageLoaderConfiguration.Builder loaderBuilder = new ImageLoaderConfiguration.Builder(getApplication());
        loaderBuilder.defaultDisplayImageOptions(displayBuilder.build());
        loaderBuilder.memoryCacheSize(getMemoryCacheSize());

        try {
            File cacheDir = new File(getExternalCacheDir() + File.separator + CacheConstant.IMAGE_CACHE_DIRECTORY);
            loaderBuilder.diskCache(new LruDiscCache(cacheDir, DefaultConfigurationFactory.createFileNameGenerator(), 500 * 1024 * 1024));
        } catch (IOException e) {
            e.printStackTrace();
        }
        ImageLoader.getInstance().init(loaderBuilder.build());
    }

}
项目:MutiPhotoChoser    文件:GalleryActivity.java   
private void initImageLoader() {
    if (options == null) {
        DisplayImageOptions.Builder displayBuilder = new DisplayImageOptions.Builder();
        displayBuilder.cacheInMemory(true);
        displayBuilder.cacheOnDisk(true);
        displayBuilder.showImageOnLoading(R.drawable.default_photo);
        displayBuilder.showImageForEmptyUri(R.drawable.default_photo);
        displayBuilder.considerExifParams(true);
        displayBuilder.bitmapConfig(Bitmap.Config.RGB_565);
        displayBuilder.imageScaleType(ImageScaleType.EXACTLY);
        displayBuilder.displayer(new FadeInBitmapDisplayer(300));
        options = displayBuilder.build();
    }

    if (!ImageLoader.getInstance().isInited()) {
        ImageLoaderConfiguration.Builder loaderBuilder = new ImageLoaderConfiguration.Builder(getApplication());
        loaderBuilder.memoryCacheSize(getMemoryCacheSize());

        try {
            File cacheDir = new File(getExternalCacheDir() + File.separator + CacheConstant.IMAGE_CACHE_DIRECTORY);
            loaderBuilder.diskCache(new LruDiscCache(cacheDir, DefaultConfigurationFactory.createFileNameGenerator(), 500 * 1024 * 1024));
        } catch (IOException e) {
            e.printStackTrace();
        }
        ImageLoader.getInstance().init(loaderBuilder.build());
    }

}
项目:letv    文件:LimitedAgeDiscCache.java   
public LimitedAgeDiscCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:letv    文件:LimitedAgeDiscCache.java   
public LimitedAgeDiscCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:letv    文件:BaseDiscCache.java   
public BaseDiscCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:boohee_v5.6    文件:LimitedAgeDiskCache.java   
public LimitedAgeDiskCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:boohee_v5.6    文件:LimitedAgeDiskCache.java   
public LimitedAgeDiskCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(),
            maxAge);
}
项目:boohee_v5.6    文件:BaseDiskCache.java   
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:MiBandDecompiled    文件:LimitedAgeDiscCache.java   
public LimitedAgeDiscCache(File file, long l)
{
    this(file, null, DefaultConfigurationFactory.createFileNameGenerator(), l);
}
项目:MiBandDecompiled    文件:LimitedAgeDiscCache.java   
public LimitedAgeDiscCache(File file, File file1, long l)
{
    this(file, file1, DefaultConfigurationFactory.createFileNameGenerator(), l);
}
项目:MiBandDecompiled    文件:BaseDiscCache.java   
public BaseDiscCache(File file, File file1)
{
    this(file, file1, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:morse    文件:BaseDiscCache.java   
public BaseDiscCache(File cacheDir) {
    this(cacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:morse    文件:UnlimitedDiscCache.java   
/** @param cacheDir Directory for file caching */
public UnlimitedDiscCache(File cacheDir) {
    this(cacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:juahya    文件:BaseDiscCache.java   
public BaseDiscCache(File cacheDir) {
    this(cacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:juahya    文件:UnlimitedDiscCache.java   
/** @param cacheDir Directory for file caching */
public UnlimitedDiscCache(File cacheDir) {
    this(cacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:GitHub    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:GitHub    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:GitHub    文件:BaseDiskCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:GifImageLoader    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:GifImageLoader    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:GifImageLoader    文件:BaseDiskCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:ImageLoaderSupportGif    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:ImageLoaderSupportGif    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:ImageLoaderSupportGif    文件:BaseDiskCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:TAG    文件:BaseDiskCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:yun2win-sdk-android    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:yun2win-sdk-android    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:yun2win-sdk-android    文件:BaseDiskCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:android-open-project-demo-master    文件:LimitedAgeDiscCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiscCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:android-open-project-demo-master    文件:LimitedAgeDiscCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiscCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:android-open-project-demo-master    文件:BaseDiscCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiscCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:mobile-manager-tool    文件:LimitedAgeDiscCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiscCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:mobile-manager-tool    文件:LimitedAgeDiscCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiscCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:mobile-manager-tool    文件:BaseDiscCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiscCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:BigApp_WordPress_Android    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:BigApp_WordPress_Android    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:BigApp_WordPress_Android    文件:BaseDiskCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
项目:AyoSunny    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, long maxAge) {
    this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:AyoSunny    文件:LimitedAgeDiskCache.java   
/**
 * @param cacheDir Directory for file caching
 * @param maxAge   Max file age (in seconds). If file age will exceed this value then it'll be removed on next
 *                 treatment (and therefore be reloaded).
 */
public LimitedAgeDiskCache(File cacheDir, File reserveCacheDir, long maxAge) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
项目:AyoSunny    文件:BaseDiskCache.java   
/**
 * @param cacheDir        Directory for file caching
 * @param reserveCacheDir null-ok; Reserve directory for file caching. It's used when the primary directory isn't available.
 */
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
    this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}