偶然发现了这个框架,阿里图片加载用的这个框架。非常简单操作步骤。
1.首先下载软件包,直接搜Cube ImageLoader 这个。
2.加入jar文件
3.使用前的配置:

public class CubeApplication extends Application {    @Override    public void onCreate() {        super.onCreate();        // other code        // ..        Cube.onCreate(this);    }    @Override    public void onTerminate() {        super.onTerminate();        // other code        // ...        Cube.onTerminate();    }}

1.首先,创建一个ImageLoader:

Context context;ImageLoader imageLoader = ImageLoaderFatory.create(context);

2.用findViewById()找到要加载图片的ImageView:

CubeImageView imageView = (CubeImageView) view.findViewById(R.id.iv_item_image_list_big);
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" >    <!-- 用定制的CubeImageView -->    <in.srain.cube.image.CubeImageView android:id="@+id/iv_item_image_list_big" android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="fitCenter" /></LinearLayout>

3.加载图片。就一句代码:

imageView.loadImage(imageLoader, url);

更多相关文章

  1. Android, App常用图标尺寸规范
  2. Android扫描zxing定制化界面实现扫描和图片解析定制ui
  3. Android游戏框架
  4. Android扩展 - 拍照篇(Camera)
  5. 【PullToRefresh 系列一基本使用方法】 Android上拉加载下拉刷新
  6. android 自定义信息提示框
  7. Android设置图片圆角的方法
  8. Android(安卓)背景图片重复平铺 Background repeat
  9. Eclipse下加载AndroidSDK源码

随机推荐

  1. 菜鸟学android---ListView和checkBox组合
  2. handler使用
  3. Android(安卓)动态获取控件的宽高,并动态
  4. android流量监测的实现原理
  5. Android中给系统控件添加配置的自定义属
  6. vlc android 编译
  7. Android网络编程之——Android下菜单系统
  8. android 动态库死机调试方法
  9. 微信浏览器视频播放探索
  10. 大厂OPPO面试— Android(安卓)开发技术面