Public 成员函数 | |
| AbImageDownloader (Context context) | |
| Bitmap | display (final ImageView imageView, String url) |
| void | execute (final AbImageDownloadItem item) |
| void | setLoadingImage (int resID) |
| void | setLoadingView (View view) |
| void | setErrorImage (int resID) |
| void | setNoImage (int resID) |
| int | getWidth () |
| void | setWidth (int width) |
| int | getHeight () |
| void | setHeight (int height) |
| int | getType () |
| void | setType (int type) |
静态 Public 成员函数 | |
| static AbImageDownloader | newInstance (Context context) |
静态 Public 属性 | |
| static Executor | mExecutorService = null |
Private 属性 | |
| Context | mContext = null |
| int | width |
| int | height |
| int | type = AbImageUtil.ORIGINALIMG |
| Drawable | loadingImage |
| View | loadingView |
| Drawable | errorImage |
| Drawable | noImage |
静态 Private 属性 | |
| static Handler | handler |
© 2012 amsoft.cn 名称:AbImageDownloader.java 描述:下载图片并显示的工具类.
|
inline |
构造图片下载器.
| context | the context |
|
inline |
显示这个图片,解决了列表问题. 列表问题:滑动过程中,getView的imageView会重复利用,导致图片会串位
| imageView | 显得的View |
| url | the url |
|
inline |
执行下载.
| item | the item |
|
inline |
获取图片的高度.
|
inline |
获取图片处理类型.
|
inline |
获取图片宽度.
|
inlinestatic |
New instance.
| context | the context |
|
inline |
描述:设置下载失败的图片.
| resID | the new error image |
|
inline |
描述:设置图片的高度.
| height | the new height |
|
inline |
描述:设置下载中的图片.
| resID | the new loading image |
|
inline |
描述:设置下载中的View,优先级高于setLoadingImage.
| view | 放在ImageView的上边或者下边的View |
|
inline |
描述:设置未找到的图片.
| resID | the new no image |
|
inline |
描述:图片的处理类型(剪切或者缩放到指定大小,参考AbConstant类).
| type | the new type |
|
inline |
描述:设置图片的宽度.
| width | the new width |
|
private |
显示下载失败的图片.
|
staticprivate |
下载完成后的消息句柄.
|
private |
显示的图片的高.
|
private |
显示为下载中的图片.
|
private |
显示为下载中的View.
|
private |
Context.
|
static |
线程执行器.
|
private |
图片未找到的图片.
|
private |
图片的处理类型(剪切或者缩放到指定大小).
|
private |
显示的图片的宽.
1.8.8