本文整理汇总了Java中in.srain.cube.image.iface.ImageLoadHandler类的典型用法代码示例。如果您正苦于以下问题:Java ImageLoadHandler类的具体用法?Java ImageLoadHandler怎么用?Java ImageLoadHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ImageLoadHandler类属于in.srain.cube.image.iface包,在下文中一共展示了ImageLoadHandler类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onLoading
import in.srain.cube.image.iface.ImageLoadHandler; //导入依赖的package包/类
/**
* When loading from network
*
* @param handler
*/
public void onLoading(ImageLoadHandler handler) {
mFlag = mFlag | STATUS_LOADING;
if (null == handler) {
return;
}
if (mFirstImageViewHolder == null) {
handler.onLoading(this, null);
} else {
ImageViewHolder holder = mFirstImageViewHolder;
do {
final CubeImageView imageView = holder.getImageView();
if (null != imageView) {
handler.onLoading(this, imageView);
}
} while ((holder = holder.mNext) != null);
}
}
开发者ID:liaohuqiu,项目名称:cube-sdk,代码行数:25,代码来源:ImageTask.java
示例2: notifyLoading
import in.srain.cube.image.iface.ImageLoadHandler; //导入依赖的package包/类
/**
* notify loading
*
* @param handler
* @param imageView
*/
public void notifyLoading(ImageLoadHandler handler, CubeImageView imageView) {
if (handler == null || imageView == null) {
return;
}
handler.onLoading(this, imageView);
}
开发者ID:liaohuqiu,项目名称:cube-sdk,代码行数:13,代码来源:ImageTask.java
示例3: onLoadTaskFinish
import in.srain.cube.image.iface.ImageLoadHandler; //导入依赖的package包/类
/**
* Will be called when begin load image data from dish or network
*
* @param drawable
*/
public void onLoadTaskFinish(BitmapDrawable drawable, ImageLoadHandler handler) {
mFlag &= ~STATUS_LOADING;
if (null == handler) {
return;
}
int errorCode = mFlag & ERROR_CODE_MASK;
if (errorCode > 0) {
onLoadError(errorCode, handler);
return;
}
if (null != mImageTaskStatistics) {
mImageTaskStatistics.s5_beforeShow();
}
if (mFirstImageViewHolder == null) {
handler.onLoadFinish(this, null, drawable);
} else {
ImageViewHolder holder = mFirstImageViewHolder;
do {
final CubeImageView imageView = holder.getImageView();
if (null != imageView) {
imageView.onLoadFinish();
handler.onLoadFinish(this, imageView, drawable);
}
} while ((holder = holder.mNext) != null);
}
if (null != mImageTaskStatistics) {
mImageTaskStatistics.s6_afterShow(ImageProvider.getBitmapSize(drawable));
ImagePerformanceStatistics.onImageLoaded(this, mImageTaskStatistics);
}
}
开发者ID:liaohuqiu,项目名称:cube-sdk,代码行数:39,代码来源:ImageTask.java
示例4: onLoadError
import in.srain.cube.image.iface.ImageLoadHandler; //导入依赖的package包/类
private void onLoadError(int reason, ImageLoadHandler handler) {
if (mFirstImageViewHolder == null) {
handler.onLoadError(this, null, reason);
} else {
ImageViewHolder holder = mFirstImageViewHolder;
do {
final CubeImageView imageView = holder.getImageView();
if (null != imageView) {
imageView.onLoadFinish();
handler.onLoadError(this, imageView, reason);
}
} while ((holder = holder.mNext) != null);
}
}
开发者ID:liaohuqiu,项目名称:cube-sdk,代码行数:15,代码来源:ImageTask.java
示例5: DemoImageLoader
import in.srain.cube.image.iface.ImageLoadHandler; //导入依赖的package包/类
public DemoImageLoader(Context context, ImageProvider imageProvider, ImageTaskExecutor imageTaskExecutor, ImageReSizer imageReSizer, ImageLoadHandler imageLoadHandler) {
super(context, imageProvider, imageTaskExecutor, imageReSizer, imageLoadHandler);
}
开发者ID:fengdongfei,项目名称:CXJPadProject,代码行数:4,代码来源:DemoImageLoader.java
注:本文中的in.srain.cube.image.iface.ImageLoadHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论