本文整理汇总了Java中com.nostra13.universalimageloader.core.DefaultConfigurationFactory类的典型用法代码示例。如果您正苦于以下问题:Java DefaultConfigurationFactory类的具体用法?Java DefaultConfigurationFactory怎么用?Java DefaultConfigurationFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultConfigurationFactory类属于com.nostra13.universalimageloader.core包,在下文中一共展示了DefaultConfigurationFactory类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initImageLoader
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
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());
}
}
开发者ID:laomengzhu,项目名称:MutiPhotoChoser,代码行数:27,代码来源:MainActivity.java
示例2: initImageLoader
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
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());
}
}
开发者ID:laomengzhu,项目名称:MutiPhotoChoser,代码行数:29,代码来源:GalleryActivity.java
示例3: LimitedAgeDiscCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
public LimitedAgeDiscCache(File cacheDir, long maxAge) {
this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
开发者ID:JackChan1999,项目名称:letv,代码行数:4,代码来源:LimitedAgeDiscCache.java
示例4: BaseDiscCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
public BaseDiscCache(File cacheDir, File reserveCacheDir) {
this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
开发者ID:JackChan1999,项目名称:letv,代码行数:4,代码来源:BaseDiscCache.java
示例5: LimitedAgeDiskCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
public LimitedAgeDiskCache(File cacheDir, long maxAge) {
this(cacheDir, null, DefaultConfigurationFactory.createFileNameGenerator(), maxAge);
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:LimitedAgeDiskCache.java
示例6: BaseDiskCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
public BaseDiskCache(File cacheDir, File reserveCacheDir) {
this(cacheDir, reserveCacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:BaseDiskCache.java
示例7: LimitedAgeDiscCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
public LimitedAgeDiscCache(File file, long l)
{
this(file, null, DefaultConfigurationFactory.createFileNameGenerator(), l);
}
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:5,代码来源:LimitedAgeDiscCache.java
示例8: BaseDiscCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
public BaseDiscCache(File file, File file1)
{
this(file, file1, DefaultConfigurationFactory.createFileNameGenerator());
}
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:5,代码来源:BaseDiscCache.java
示例9: BaseDiscCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
public BaseDiscCache(File cacheDir) {
this(cacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
开发者ID:Apokrif,项目名称:morse,代码行数:4,代码来源:BaseDiscCache.java
示例10: UnlimitedDiscCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
/** @param cacheDir Directory for file caching */
public UnlimitedDiscCache(File cacheDir) {
this(cacheDir, DefaultConfigurationFactory.createFileNameGenerator());
}
开发者ID:Apokrif,项目名称:morse,代码行数:5,代码来源:UnlimitedDiscCache.java
示例11: LimitedAgeDiskCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
/**
* @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);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:9,代码来源:LimitedAgeDiskCache.java
示例12: BaseDiskCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
/**
* @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());
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:BaseDiskCache.java
示例13: LimitedAgeDiscCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
/**
* @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);
}
开发者ID:xulailing,项目名称:android-open-project-demo-master,代码行数:9,代码来源:LimitedAgeDiscCache.java
示例14: BaseDiscCache
import com.nostra13.universalimageloader.core.DefaultConfigurationFactory; //导入依赖的package包/类
/**
* @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());
}
开发者ID:xulailing,项目名称:android-open-project-demo-master,代码行数:8,代码来源:BaseDiscCache.java
注:本文中的com.nostra13.universalimageloader.core.DefaultConfigurationFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论