当前位置: 首页>>代码示例>>Java>>正文


Java L.w方法代码示例

本文整理汇总了Java中com.nostra13.universalimageloader.utils.L.w方法的典型用法代码示例。如果您正苦于以下问题:Java L.w方法的具体用法?Java L.w怎么用?Java L.w使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.nostra13.universalimageloader.utils.L的用法示例。


在下文中一共展示了L.w方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: LimitedMemoryCache

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
/** @param sizeLimit Maximum size for cache (in bytes) */
public LimitedMemoryCache(int sizeLimit) {
	this.sizeLimit = sizeLimit;
	cacheSize = new AtomicInteger();
	if (sizeLimit > MAX_NORMAL_CACHE_SIZE) {
		L.w("You set too large memory cache size (more than %1$d Mb)", MAX_NORMAL_CACHE_SIZE_IN_MB);
	}
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:9,代码来源:LimitedMemoryCache.java

示例2: taskExecutor

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
public Builder taskExecutor(Executor executor) {
    if (!(this.threadPoolSize == 3 && this.threadPriority == 3 && this
            .tasksProcessingType == DEFAULT_TASK_PROCESSING_TYPE)) {
        L.w(WARNING_OVERLAP_EXECUTOR, new Object[0]);
    }
    this.taskExecutor = executor;
    return this;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:ImageLoaderConfiguration.java

示例3: tasksProcessingOrder

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
/**
 * Sets type of queue processing for tasks for loading and displaying images.<br />
 * Default value - {@link QueueProcessingType#FIFO}
 */
public Builder tasksProcessingOrder(QueueProcessingType tasksProcessingType) {
	if (taskExecutor != null || taskExecutorForCachedImages != null) {
		L.w(WARNING_OVERLAP_EXECUTOR);
	}

	this.tasksProcessingType = tasksProcessingType;
	return this;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:13,代码来源:ImageLoaderConfiguration.java

示例4: tasksProcessingOrder

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
public Builder tasksProcessingOrder(QueueProcessingType tasksProcessingType) {
    if (!(this.taskExecutor == null && this.taskExecutorForCachedImages == null)) {
        L.w(WARNING_OVERLAP_EXECUTOR, new Object[0]);
    }
    this.tasksProcessingType = tasksProcessingType;
    return this;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:8,代码来源:ImageLoaderConfiguration.java

示例5: diskCacheFileCount

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
public Builder diskCacheFileCount(int maxFileCount) {
    if (maxFileCount <= 0) {
        throw new IllegalArgumentException("maxFileCount must be a positive number");
    }
    if (this.diskCache != null) {
        L.w(WARNING_OVERLAP_DISK_CACHE_PARAMS, new Object[0]);
    }
    this.diskCacheFileCount = maxFileCount;
    return this;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:11,代码来源:ImageLoaderConfiguration.java

示例6: init

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
/**
 * Initializes ImageLoader instance with configuration.<br />
 * If configurations was set before ( {@link #isInited()} == true) then this method does nothing.<br />
 * To force initialization with new configuration you should {@linkplain #destroy() destroy ImageLoader} at first.
 *
 * @param configuration {@linkplain ImageLoaderConfiguration ImageLoader configuration}
 * @throws IllegalArgumentException if <b>configuration</b> parameter is null
 */
public synchronized void init(ImageLoaderConfiguration configuration) {
    if (configuration == null) {
        throw new IllegalArgumentException(ERROR_INIT_CONFIG_WITH_NULL);
    }
    if (this.configuration == null) {
        L.d(LOG_INIT_CONFIG);
        engine = new ImageLoaderEngine(configuration);
        this.configuration = configuration;
    } else {
        L.w(WARNING_RE_INIT_CONFIG);
    }
}
 
开发者ID:siwangqishiq,项目名称:ImageLoaderSupportGif,代码行数:21,代码来源:ImageLoader.java

示例7: init

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
/**
 * Initializes ImageLoader instance with configuration.<br />
 * If configurations was set before ( {@link #isInited()} == true) then this method does nothing.<br />
 * To force initialization with new configuration you should {@linkplain #destroy() destroy ImageLoader} at first.
 *
 * @param configuration {@linkplain ImageLoaderConfiguration ImageLoader configuration}
 * @throws IllegalArgumentException if <b>configuration</b> parameter is null
 */
public synchronized void init(ImageLoaderConfiguration configuration) {
	if (configuration == null) {
		throw new IllegalArgumentException(ERROR_INIT_CONFIG_WITH_NULL);
	}
	if (this.configuration == null) {
		L.d(LOG_INIT_CONFIG);
		engine = new ImageLoaderEngine(configuration);
		this.configuration = configuration;
	} else {
		L.w(WARNING_RE_INIT_CONFIG);
	}
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:21,代码来源:ImageLoader.java

示例8: diskCacheFileNameGenerator

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
/**
 * Sets name generator for files cached in disk cache.<br />
 * Default value -
 * {@link com.nostra13.universalimageloader.core.DefaultConfigurationFactory#createFileNameGenerator()
 * DefaultConfigurationFactory.createFileNameGenerator()}
 */
public Builder diskCacheFileNameGenerator(FileNameGenerator fileNameGenerator) {
    if (diskCache != null) {
        L.w(WARNING_OVERLAP_DISK_CACHE_NAME_GENERATOR);
    }

    this.diskCacheFileNameGenerator = fileNameGenerator;
    return this;
}
 
开发者ID:Spencer231,项目名称:GifImageLoader,代码行数:15,代码来源:ImageLoaderConfiguration.java

示例9: memoryCacheSizePercentage

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
/**
 * Sets maximum memory cache size (in percent of available app memory) for {@link android.graphics.Bitmap
 * bitmaps}.<br />
 * Default value - 1/8 of available app memory.<br />
 * <b>NOTE:</b> If you use this method then
 * {@link com.nostra13.universalimageloader.cache.memory.impl.LruMemoryCache LruMemoryCache} will be used as
 * memory cache. You can use {@link #memoryCache(MemoryCache)} method to set your own implementation of
 * {@link MemoryCache}.
 */
public Builder memoryCacheSizePercentage(int availableMemoryPercent) {
    if (availableMemoryPercent <= 0 || availableMemoryPercent >= 100) {
        throw new IllegalArgumentException("availableMemoryPercent must be in range (0 < % < 100)");
    }

    if (memoryCache != null) {
        L.w(WARNING_OVERLAP_MEMORY_CACHE);
    }

    long availableMemory = Runtime.getRuntime().maxMemory();
    memoryCacheSize = (int) (availableMemory * (availableMemoryPercent / 100f));
    return this;
}
 
开发者ID:Spencer231,项目名称:GifImageLoader,代码行数:23,代码来源:ImageLoaderConfiguration.java

示例10: tasksProcessingOrder

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
/**
 * Sets type of queue processing for tasks for loading and displaying images.<br />
 * Default value - {@link QueueProcessingType#FIFO}
 */
public Builder tasksProcessingOrder(QueueProcessingType tasksProcessingType) {
    if (taskExecutor != null || taskExecutorForCachedImages != null) {
        L.w(WARNING_OVERLAP_EXECUTOR);
    }

    this.tasksProcessingType = tasksProcessingType;
    return this;
}
 
开发者ID:Spencer231,项目名称:GifImageLoader,代码行数:13,代码来源:ImageLoaderConfiguration.java

示例11: LimitedMemoryCache

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
public LimitedMemoryCache(int sizeLimit) {
    this.sizeLimit = sizeLimit;
    this.cacheSize = new AtomicInteger();
    if (sizeLimit > 16777216) {
        L.w("You set too large memory cache size (more than %1$d Mb)", new Object[]{Integer
                .valueOf(16)});
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:LimitedMemoryCache.java

示例12: init

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
public synchronized void init(ImageLoaderConfiguration configuration) {
    if (configuration == null) {
        throw new IllegalArgumentException(ERROR_INIT_CONFIG_WITH_NULL);
    } else if (this.configuration == null) {
        L.d(LOG_INIT_CONFIG, new Object[0]);
        this.engine = new ImageLoaderEngine(configuration);
        this.configuration = configuration;
    } else {
        L.w(WARNING_RE_INIT_CONFIG, new Object[0]);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:12,代码来源:ImageLoader.java

示例13: memoryCacheSizePercentage

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
/**
 * Sets maximum memory cache size (in percent of available app memory) for {@link android.graphics.Bitmap
 * bitmaps}.<br />
 * Default value - 1/8 of available app memory.<br />
 * <b>NOTE:</b> If you use this method then
 * {@link com.nostra13.universalimageloader.cache.memory.impl.LruMemoryCache LruMemoryCache} will be used as
 * memory cache. You can use {@link #memoryCache(MemoryCache)} method to set your own implementation of
 * {@link MemoryCache}.
 */
public Builder memoryCacheSizePercentage(int availableMemoryPercent) {
	if (availableMemoryPercent <= 0 || availableMemoryPercent >= 100) {
		throw new IllegalArgumentException("availableMemoryPercent must be in range (0 < % < 100)");
	}

	if (memoryCache != null) {
		L.w(WARNING_OVERLAP_MEMORY_CACHE);
	}

	long availableMemory = Runtime.getRuntime().maxMemory();
	memoryCacheSize = (int) (availableMemory * (availableMemoryPercent / 100f));
	return this;
}
 
开发者ID:siwangqishiq,项目名称:ImageLoaderSupportGif,代码行数:23,代码来源:ImageLoaderConfiguration.java

示例14: diskCacheSize

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
public Builder diskCacheSize(int maxCacheSize) {
    if (maxCacheSize <= 0) {
        throw new IllegalArgumentException("maxCacheSize must be a positive number");
    }
    if (this.diskCache != null) {
        L.w(WARNING_OVERLAP_DISK_CACHE_PARAMS, new Object[0]);
    }
    this.diskCacheSize = (long) maxCacheSize;
    return this;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:11,代码来源:ImageLoaderConfiguration.java

示例15: diskCacheFileNameGenerator

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
public Builder diskCacheFileNameGenerator(FileNameGenerator fileNameGenerator) {
    if (this.diskCache != null) {
        L.w(WARNING_OVERLAP_DISK_CACHE_NAME_GENERATOR, new Object[0]);
    }
    this.diskCacheFileNameGenerator = fileNameGenerator;
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:8,代码来源:ImageLoaderConfiguration.java


注:本文中的com.nostra13.universalimageloader.utils.L.w方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。