AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | 静态 Public 成员函数 | Private 属性 | 所有成员列表
com.ab.image.AbImageLoader类 参考

Public 成员函数

 AbImageLoader (Context context)
 
void display (final ImageView imageView, String url)
 
void setLoadingImage (int resID)
 
void setLoadingView (View view)
 
void setErrorImage (int resID)
 
void setEmptyImage (int resID)
 
int getMaxWidth ()
 
void setMaxWidth (int maxWidth)
 
int getMaxHeight ()
 
void setMaxHeight (int maxHeight)
 

静态 Public 成员函数

static AbImageLoader newInstance (Context context)
 

Private 属性

Context mContext = null
 
int maxWidth
 
int maxHeight
 
Drawable loadingImage
 
View loadingView
 
Drawable errorImage
 
Drawable emptyImage
 
RequestQueue mQueue
 
ImageLoader mImageLoader = null
 

详细描述

© 2012 amsoft.cn 名称:AbImageLoader.java 描述:下载图片并显示的工具类.

作者
还如一梦中
版本
v1.0
日期
:2011-12-10 上午10:10:53

构造及析构函数说明

com.ab.image.AbImageLoader.AbImageLoader ( Context  context)
inline

构造图片下载器.

参数
contextthe context

成员函数说明

void com.ab.image.AbImageLoader.display ( final ImageView  imageView,
String  url 
)
inline

显示这个图片

参数
imageView显得的View
urlthe url
返回
the bitmap
int com.ab.image.AbImageLoader.getMaxHeight ( )
inline
int com.ab.image.AbImageLoader.getMaxWidth ( )
inline
static AbImageLoader com.ab.image.AbImageLoader.newInstance ( Context  context)
inlinestatic

New instance.

参数
contextthe context
返回
the ab image downloader
void com.ab.image.AbImageLoader.setEmptyImage ( int  resID)
inline

描述:设置未找到的图片.

参数
resIDthe new empty image
void com.ab.image.AbImageLoader.setErrorImage ( int  resID)
inline

描述:设置下载失败的图片.

参数
resIDthe new error image
void com.ab.image.AbImageLoader.setLoadingImage ( int  resID)
inline

描述:设置下载中的图片.

参数
resIDthe new loading image
void com.ab.image.AbImageLoader.setLoadingView ( View  view)
inline

描述:设置下载中的View,优先级高于setLoadingImage.

参数
view放在ImageView的上边或者下边的View
void com.ab.image.AbImageLoader.setMaxHeight ( int  maxHeight)
inline
void com.ab.image.AbImageLoader.setMaxWidth ( int  maxWidth)
inline

类成员变量说明

Drawable com.ab.image.AbImageLoader.emptyImage
private

图片未找到的图片.

Drawable com.ab.image.AbImageLoader.errorImage
private

显示下载失败的图片.

Drawable com.ab.image.AbImageLoader.loadingImage
private

显示为下载中的图片.

View com.ab.image.AbImageLoader.loadingView
private

显示为下载中的View.

int com.ab.image.AbImageLoader.maxHeight
private

显示的图片的高.

int com.ab.image.AbImageLoader.maxWidth
private

显示的图片的宽.

Context com.ab.image.AbImageLoader.mContext = null
private

Context.

ImageLoader com.ab.image.AbImageLoader.mImageLoader = null
private
RequestQueue com.ab.image.AbImageLoader.mQueue
private

该类的文档由以下文件生成: