Imageloader简化版
来源:互联网 发布:eclipse js编辑器插件 编辑:程序博客网 时间:2024/06/16 19:04
public class ImageLoaders {
public static void init(Context context) {
Builder configuration = new ImageLoaderConfiguration.Builder(context);
ImageLoader.getInstance().init(configuration.build());
}
public static DisplayImageOptions options() {
DisplayImageOptions dis = new DisplayImageOptions.Builder()
.showImageOnFail(R.drawable.ic_launcher).build();
return dis;
}
}
public class Myapplication extends Application {
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
ImageLoaders.init(getApplicationContext());
}
}
//适配器中
ImageLoader.getInstance().displayImage("路径", image);
public static void init(Context context) {
Builder configuration = new ImageLoaderConfiguration.Builder(context);
ImageLoader.getInstance().init(configuration.build());
}
public static DisplayImageOptions options() {
DisplayImageOptions dis = new DisplayImageOptions.Builder()
.showImageOnFail(R.drawable.ic_launcher).build();
return dis;
}
}
public class Myapplication extends Application {
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
ImageLoaders.init(getApplicationContext());
}
}
//适配器中
ImageLoader.getInstance().displayImage("路径", image);
0 0
- Imageloader简化版
- Android——自定义简化版ImageLoader
- 简易版的Imageloader
- ImageLoader超级详细版
- ImageLoader
- ImageLoader
- ImageLoader
- ImageLoader
- ImageLoader
- imageloader
- ImageLoader
- ImageLoader
- imageLoader
- ImageLoader
- ImageLoader
- ImageLoader
- ImageLoader
- ImageLoader
- PowerDesigner中的继承方式
- C语言itoa()函数和atoi()函数详解(整数转字符C实现)
- Agri-Net(POJ 1258)(裸最小生成树)(Prime算法+Kruskal算法)
- 呵呵哒
- ionic angularjs安装过程详解
- Imageloader简化版
- 异常处理记录和工具类
- php001-简介等 + php运行环境搭建
- Ubuntu 14.04 64位系统更新重启后无法进入系统,光标不停闪烁
- 多基站wifi混合定位
- 装饰者模式
- 机房----二
- Android 汉语转拼音
- 复习工厂模式想到的