ImageLoader的Application
来源:互联网 发布:电脑软件备份工具 编辑:程序博客网 时间:2024/06/07 07:43
@Override public void onCreate() { super.onCreate(); ImageLoaderConfiguration builder = new ImageLoaderConfiguration.Builder(this).build(); //初始化设置// .memoryCacheExtraOptions(480, 800) // max width, max height,即保存的每个缓存文件的最大长宽// .threadPoolSize(5)//线程池内加载的数量// .threadPriority(Thread.NORM_PRIORITY - 2)// .denyCacheImageMultipleSizesInMemory()// .memoryCache(new UsingFreqLimitedMemoryCache(2 * 1024 * 1024)) // You can pass your own memory cache implementation/你可以通过自己的内存缓存实现// .memoryCacheSize(2 * 1024 * 1024)// .tasksProcessingOrder(QueueProcessingType.LIFO)// .defaultDisplayImageOptions(DisplayImageOptions.createSimple())// .imageDownloader(new BaseImageDownloader(this, 5 * 1000, 30 * 1000)) // connectTimeout (5 s), readTimeout (30 s)超时时间// .writeDebugLogs() // Remove for release app// .build();//开始构建 //初始化imageloder; ImageLoader.getInstance().init(builder); }
阅读全文
0 0
- ImageLoader的Application
- ImageLoader的Application
- ImageLoader,(Application包下的,MyApplication)
- Imageloader中的Application中的配置
- 用ImageLoader查找图片继承Application
- Imageloader<5>-ImageLoader的变量初始化
- ImageLoader源码解析-----ImageLoader的结构
- ImageLoader的使用
- ImageLoader的使用
- 开源库ImageLoader的使用
- ImageLoader遇到的问题
- ImageLoader的用法
- ImageLoader的基本使用
- ImageLoader的基本使用方法
- ImageLoader的使用
- 图片的加载ImageLoader
- ImageLoader的MyApplication
- ImageLoader的使用
- 移动端唤醒软键盘布局
- 刷题
- Java 自定义比较器
- mysql报错Error Code: 1022. Can't write; duplicate key in table `xxx`
- JavaScript学习总结(十六)——Javascript闭包(Closure)
- ImageLoader的Application
- bzoj3682
- Maven项目使用爬虫需要添加的jar包
- Mybatis系列之集合映射
- CodeForces 468A A. 24 Game
- 分享一个音乐API接口
- 深入理解javascript原型和闭包(7)——原型的灵活性
- Python基础
- mysql远程连接报10038的错误