当前位置: 首页>>代码示例>>Java>>正文


Java LoadedFrom.MEMORY_CACHE属性代码示例

本文整理汇总了Java中com.nostra13.universalimageloader.core.assist.LoadedFrom.MEMORY_CACHE属性的典型用法代码示例。如果您正苦于以下问题:Java LoadedFrom.MEMORY_CACHE属性的具体用法?Java LoadedFrom.MEMORY_CACHE怎么用?Java LoadedFrom.MEMORY_CACHE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.nostra13.universalimageloader.core.assist.LoadedFrom的用法示例。


在下文中一共展示了LoadedFrom.MEMORY_CACHE属性的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: display

@Override
public void display(Bitmap bitmap, ImageAware imageAware,
		LoadedFrom loadedFrom) {

	if (!(imageAware instanceof ImageViewAware)) {
		throw new IllegalArgumentException("ImageAware should wrap ImageView. ImageViewAware is expected.");
	}

	imageAware.setImageDrawable(new RoundedDrawable(bitmap, cornerRadius, margin));
	
	if ((animateFromNetwork && loadedFrom == LoadedFrom.NETWORK) ||
			(animateFromDisk && loadedFrom == LoadedFrom.DISC_CACHE) ||
			(animateFromMemory && loadedFrom == LoadedFrom.MEMORY_CACHE)) {
		animate(imageAware.getWrappedView(), durationMillis);
	}
}
 
开发者ID:x251089003,项目名称:EveryXDay,代码行数:16,代码来源:AnimatioinAndCornerBitmapDisplayer.java

示例2: display

@Override
public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
	imageAware.setImageBitmap(bitmap);

	if ((animateFromNetwork && loadedFrom == LoadedFrom.NETWORK) ||
			(animateFromDisk && loadedFrom == LoadedFrom.DISC_CACHE) ||
			(animateFromMemory && loadedFrom == LoadedFrom.MEMORY_CACHE)) {
		animate(imageAware.getWrappedView(), durationMillis);
	}
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:FadeInBitmapDisplayer.java

示例3: run

@Override
public void run() {
	L.d(LOG_POSTPROCESS_IMAGE, imageLoadingInfo.memoryCacheKey);

	BitmapProcessor processor = imageLoadingInfo.options.getPostProcessor();
	Bitmap processedBitmap = processor.process(bitmap);
	DisplayBitmapTask displayBitmapTask = new DisplayBitmapTask(processedBitmap, imageLoadingInfo, engine,
			LoadedFrom.MEMORY_CACHE);
	LoadAndDisplayImageTask.runTask(displayBitmapTask, imageLoadingInfo.options.isSyncLoading(), handler, engine);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:ProcessAndDisplayImageTask.java

示例4: display

@Override
public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom, int fileTypeStatus, String filepath) {
	imageAware.setImageBitmap(bitmap);
	if ((animateFromNetwork && loadedFrom == LoadedFrom.NETWORK) ||
			(animateFromDisk && loadedFrom == LoadedFrom.DISC_CACHE) ||
			(animateFromMemory && loadedFrom == LoadedFrom.MEMORY_CACHE)) {
		animate(imageAware.getWrappedView(), durationMillis);
	}
}
 
开发者ID:Spencer231,项目名称:GifImageLoader,代码行数:9,代码来源:FadeInBitmapDisplayer.java

示例5: display

public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
    imageAware.setImageBitmap(bitmap);
    if ((this.animateFromNetwork && loadedFrom == LoadedFrom.NETWORK) || ((this
            .animateFromDisk && loadedFrom == LoadedFrom.DISC_CACHE) || (this
            .animateFromMemory && loadedFrom == LoadedFrom.MEMORY_CACHE))) {
        animate(imageAware.getWrappedView(), this.durationMillis);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:8,代码来源:FadeInBitmapDisplayer.java

示例6: run

@Override
public void run() {
	L.d(LOG_POSTPROCESS_IMAGE, imageLoadingInfo.memoryCacheKey);

	BitmapProcessor processor = imageLoadingInfo.options.getPostProcessor();
	Bitmap processedBitmap = processor.process(bitmap);
	com.nostra13.universalimageloader.core.DisplayBitmapTask displayBitmapTask = new com.nostra13.universalimageloader.core.DisplayBitmapTask(processedBitmap, imageLoadingInfo, engine,
			LoadedFrom.MEMORY_CACHE);
	com.nostra13.universalimageloader.core.LoadAndDisplayImageTask.runTask(displayBitmapTask, imageLoadingInfo.options.isSyncLoading(), handler, engine);
}
 
开发者ID:hubcarl,项目名称:mobile-manager-tool,代码行数:10,代码来源:ProcessAndDisplayImageTask.java

示例7: display

public void display(Bitmap bitmap, ImageAware imageaware, LoadedFrom loadedfrom)
{
    imageaware.setImageBitmap(bitmap);
    if (b && loadedfrom == LoadedFrom.NETWORK || c && loadedfrom == LoadedFrom.DISC_CACHE || d && loadedfrom == LoadedFrom.MEMORY_CACHE)
    {
        animate(imageaware.getWrappedView(), a);
    }
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:8,代码来源:FadeInBitmapDisplayer.java

示例8: display

/**
 * 图片进行显示在ImageAware中
 * @param bitmap     原图片
 * @param imageAware 显示进行显示图片的控件 {@linkplain com.nostra13.universalimageloader.core.imageaware.ImageAware Image aware view} to
 *                   display Bitmap
 * @param loadedFrom Source of loaded image   图片来源方式
 */
@Override
public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
	imageAware.setImageBitmap(bitmap);

	if ((animateFromNetwork && loadedFrom == LoadedFrom.NETWORK) ||
			(animateFromDisk && loadedFrom == LoadedFrom.DISC_CACHE) ||
			(animateFromMemory && loadedFrom == LoadedFrom.MEMORY_CACHE)) {
		animate(imageAware.getWrappedView(), durationMillis);
	}
}
 
开发者ID:jiangqqlmj,项目名称:Android-Universal-Image-Loader-Modify,代码行数:17,代码来源:FadeInBitmapDisplayer.java

示例9: run

@Override
public void run() {
	L.d(LOG_POSTPROCESS_IMAGE, imageLoadingInfo.memoryCacheKey);
       //获取图片处理器 然后取得加载的图片
	BitmapProcessor processor = imageLoadingInfo.options.getPostProcessor();
	Bitmap processedBitmap = processor.process(bitmap);
	//封装图片显示任务   其中图片来源设置成-来自内存缓存
	DisplayBitmapTask displayBitmapTask = new DisplayBitmapTask(processedBitmap, imageLoadingInfo, engine,
			LoadedFrom.MEMORY_CACHE);
	//执行任务
	LoadAndDisplayImageTask.runTask(displayBitmapTask, imageLoadingInfo.options.isSyncLoading(), handler, engine);
}
 
开发者ID:jiangqqlmj,项目名称:Android-Universal-Image-Loader-Modify,代码行数:12,代码来源:ProcessAndDisplayImageTask.java

示例10: display

@Override
public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
	imageAware.setImageBitmap(bitmap);

	if ((animateFromNetwork && loadedFrom == LoadedFrom.NETWORK) ||
			(animateFromDisc && loadedFrom == LoadedFrom.DISC_CACHE) ||
			(animateFromMemory && loadedFrom == LoadedFrom.MEMORY_CACHE)) {
		animate(imageAware.getWrappedView(), durationMillis);
	}
}
 
开发者ID:Apokrif,项目名称:morse,代码行数:10,代码来源:FadeInBitmapDisplayer.java

示例11: run

@Override
public void run() {
	if (engine.configuration.writeLogs) L.d(LOG_POSTPROCESS_IMAGE, imageLoadingInfo.memoryCacheKey);
	BitmapProcessor processor = imageLoadingInfo.options.getPostProcessor();
	final Bitmap processedBitmap = processor.process(bitmap);
	DisplayBitmapTask displayBitmapTask = new DisplayBitmapTask(processedBitmap, imageLoadingInfo, engine, LoadedFrom.MEMORY_CACHE);
	displayBitmapTask.setLoggingEnabled(engine.configuration.writeLogs);
	if (imageLoadingInfo.options.isSyncLoading()) {
		displayBitmapTask.run();
	} else {
		handler.post(displayBitmapTask);
	}
}
 
开发者ID:Apokrif,项目名称:morse,代码行数:13,代码来源:ProcessAndDisplayImageTask.java

示例12: display

@Override
public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
    Drawable drawable = mTransform != null
                        ? mTransform.getDrawable(bitmap)
                        : new BitmapDrawable(imageAware.getWrappedView().getResources(), bitmap);

    if (mAnimation == NOT_ANIMATED || loadedFrom == LoadedFrom.MEMORY_CACHE) {
        imageAware.setImageDrawable(drawable);
    } else {
        CrossFadeBitmapDisplayer.setImageDrawableWithXFade(imageAware, drawable, 250);
    }
}
 
开发者ID:carlosefonseca,项目名称:CEFCommon,代码行数:12,代码来源:Gogh.java

示例13: display

@Override
public Bitmap display(Bitmap bitmap, ImageView imageView, LoadedFrom loadedFrom) {
    imageView.setImageBitmap(bitmap);
    if (loadedFrom != LoadedFrom.MEMORY_CACHE) {
        AnimUtils.runFadeInAnimationOn(getContext(), mArtwork);
    }
    return bitmap;
}
 
开发者ID:tsenart,项目名称:listen-later,代码行数:8,代码来源:PlayerArtworkTrackView.java

示例14: display

public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
    imageAware.setImageBitmap(bitmap);
    if ((this.animateFromNetwork && loadedFrom == LoadedFrom.NETWORK) || ((this.animateFromDisk && loadedFrom == LoadedFrom.DISC_CACHE) || (this.animateFromMemory && loadedFrom == LoadedFrom.MEMORY_CACHE))) {
        animate(imageAware.getWrappedView(), this.durationMillis);
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:6,代码来源:FadeInBitmapDisplayer.java


注:本文中的com.nostra13.universalimageloader.core.assist.LoadedFrom.MEMORY_CACHE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。