com.nostra13.universalimageloader.core.display.BitmapDisplayer Java Examples
The following examples show how to use
com.nostra13.universalimageloader.core.display.BitmapDisplayer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ImageLoaderUtils.java From DevUtils with Apache License 2.0 | 5 votes |
/** * 获取图片效果加载配置 * @param options {@link DisplayImageOptions} * @param displayer {@link BitmapDisplayer} * @return {@link DisplayImageOptions} */ public static DisplayImageOptions getBitmapDisplayerOptions(final DisplayImageOptions options, final BitmapDisplayer displayer) { if (options != null && displayer != null) { return cloneImageOptions(options).displayer(displayer).build(); } return null; }
Example #2
Source File: ImageLoadUtil.java From mobile-manager-tool with MIT License | 5 votes |
/** * 构造图片显示的配置选项 * * @param placeHolderImgRes 默认的占位显示图片 * @param emptyUrlImgRes 空链接显示的图片 * @param failedImgRes 加载失败显示的图片 * @param cacheInMemory 是否内存缓存,图片过大,建议不要内存缓存 * @return */ private static DisplayImageOptions constructDisplayOption(String url, int placeHolderImgRes, int emptyUrlImgRes, int failedImgRes, boolean cacheInMemory, BitmapDisplayer displayer) { DisplayImageOptions.Builder bulider = new DisplayImageOptions.Builder(); bulider.cacheOnDisc(true); // 默认开启磁盘缓存 缓存在默认位置 // /sdcard/Android/data/[package_name]/cache bulider.cacheInMemory(cacheInMemory); bulider.resetViewBeforeLoading(true); bulider.bitmapConfig(Bitmap.Config.RGB_565); // bulider.displayer(new FadeInBitmapDisplayer(200));//加载动画 if (displayer != null) { bulider.displayer(displayer); } if (placeHolderImgRes > 0) { bulider.showStubImage(placeHolderImgRes); } if (emptyUrlImgRes > 0) { bulider.showImageForEmptyUri(emptyUrlImgRes); } if (failedImgRes > 0) { bulider.showImageOnFail(failedImgRes); } return bulider.build(); }
Example #3
Source File: ImageLoadUtil.java From mobile-manager-tool with MIT License | 5 votes |
/** * 加载显示图片 * * @param imageView 显示图片的组件 * @param url 图片加载的URL * @param placeHolderImg 默认的占位显示图片 * @param emptyUrlImgRes 空链接显示的图片,不定义请置 0 * @param failedImgRes 加载失败显示的图片,不定义请置 0 * @param cacheInMemory 是否将图片缓存到内存中 (大图不建议缓存到内存中) */ public static void loadImage(ImageView imageView, String url, int placeHolderImg, int emptyUrlImgRes, int failedImgRes, boolean cacheInMemory, BitmapDisplayer displayer) { DisplayImageOptions option = constructDisplayOption(url, placeHolderImg, emptyUrlImgRes, failedImgRes, cacheInMemory, displayer); if (Strings.isEmpty(url) || (!url.endsWith(".jpg") && !url.endsWith(".jpeg") && !url.endsWith(".png") && !url.endsWith(".JPG") && !url.endsWith(".JPEG") && !url.endsWith(".PNG"))) { if (placeHolderImg != 0) { imageView.setImageResource(placeHolderImg); } return; } imageLoader.displayImage(url, imageView, option); }
Example #4
Source File: DisplayImageOptions.java From MiBandDecompiled with Apache License 2.0 | 5 votes |
public Builder displayer(BitmapDisplayer bitmapdisplayer) { if (bitmapdisplayer == null) { throw new IllegalArgumentException("displayer can't be null"); } else { q = bitmapdisplayer; return this; } }
Example #5
Source File: DisplayImageOptions.java From WliveTV with Apache License 2.0 | 4 votes |
public BitmapDisplayer getDisplayer() { return displayer; }
Example #6
Source File: DefaultConfigurationFactory.java From android-open-project-demo with Apache License 2.0 | 4 votes |
/** Creates default implementation of {@link BitmapDisplayer} - {@link SimpleBitmapDisplayer} */ public static BitmapDisplayer createBitmapDisplayer() { return new SimpleBitmapDisplayer(); }
Example #7
Source File: DisplayImageOptions.java From android-open-project-demo with Apache License 2.0 | 4 votes |
public BitmapDisplayer getDisplayer() { return displayer; }
Example #8
Source File: DisplayImageOptions.java From Android-Universal-Image-Loader-Modify with Apache License 2.0 | 4 votes |
public BitmapDisplayer getDisplayer() { return displayer; }
Example #9
Source File: UILBitmapLoader.java From scissors with Apache License 2.0 | 4 votes |
public UILBitmapLoader(ImageLoader imageLoader, BitmapDisplayer bitmapDisplayer) { this.imageLoader = imageLoader; this.bitmapDisplayer = bitmapDisplayer; }
Example #10
Source File: UILFillViewportDisplayer.java From scissors with Apache License 2.0 | 4 votes |
public static BitmapDisplayer createUsing(int viewportWidth, int viewportHeight) { return new UILFillViewportDisplayer(viewportWidth, viewportHeight); }
Example #11
Source File: DefaultConfigurationFactory.java From MiBandDecompiled with Apache License 2.0 | 4 votes |
public static BitmapDisplayer createBitmapDisplayer() { return new SimpleBitmapDisplayer(); }
Example #12
Source File: DisplayImageOptions.java From MiBandDecompiled with Apache License 2.0 | 4 votes |
static BitmapDisplayer q(Builder builder) { return builder.q; }
Example #13
Source File: DisplayImageOptions.java From MiBandDecompiled with Apache License 2.0 | 4 votes |
public BitmapDisplayer getDisplayer() { return q; }
Example #14
Source File: DisplayImageOptions.java From MiBandDecompiled with Apache License 2.0 | 4 votes |
static BitmapDisplayer q(DisplayImageOptions displayimageoptions) { return displayimageoptions.q; }
Example #15
Source File: DefaultConfigurationFactory.java From WliveTV with Apache License 2.0 | 4 votes |
/** Creates default implementation of {@link BitmapDisplayer} - {@link SimpleBitmapDisplayer} */ public static BitmapDisplayer createBitmapDisplayer() { return new SimpleBitmapDisplayer(); }
Example #16
Source File: DisplayImageOptions.java From candybar with Apache License 2.0 | 4 votes |
public BitmapDisplayer getDisplayer() { return displayer; }
Example #17
Source File: DefaultConfigurationFactory.java From BigApp_WordPress_Android with Apache License 2.0 | 4 votes |
/** Creates default implementation of {@link BitmapDisplayer} - {@link SimpleBitmapDisplayer} */ public static BitmapDisplayer createBitmapDisplayer() { return new SimpleBitmapDisplayer(); }
Example #18
Source File: DisplayImageOptions.java From BigApp_WordPress_Android with Apache License 2.0 | 4 votes |
public BitmapDisplayer getDisplayer() { return displayer; }
Example #19
Source File: DefaultConfigurationFactory.java From mobile-manager-tool with MIT License | 4 votes |
/** Creates default implementation of {@link com.nostra13.universalimageloader.core.display.BitmapDisplayer} - {@link com.nostra13.universalimageloader.core.display.SimpleBitmapDisplayer} */ public static BitmapDisplayer createBitmapDisplayer() { return new SimpleBitmapDisplayer(); }
Example #20
Source File: DisplayImageOptions.java From mobile-manager-tool with MIT License | 4 votes |
public BitmapDisplayer getDisplayer() { return displayer; }
Example #21
Source File: LetvCacheMannager.java From letv with Apache License 2.0 | 4 votes |
private BitmapDisplayer getDisplayer() { if (VERSION.SDK_INT >= 9) { return new FadeInBitmapDisplayer(200); } return new SimpleBitmapDisplayer(); }
Example #22
Source File: DefaultConfigurationFactory.java From letv with Apache License 2.0 | 4 votes |
public static BitmapDisplayer createBitmapDisplayer() { return new SimpleBitmapDisplayer(); }
Example #23
Source File: DisplayImageOptions.java From letv with Apache License 2.0 | 4 votes |
public BitmapDisplayer getDisplayer() { return this.displayer; }
Example #24
Source File: DefaultConfigurationFactory.java From candybar with Apache License 2.0 | 4 votes |
/** * Creates default implementation of {@link BitmapDisplayer} - {@link SimpleBitmapDisplayer} */ public static BitmapDisplayer createBitmapDisplayer() { return new SimpleBitmapDisplayer(); }
Example #25
Source File: DefaultConfigurationFactory.java From Android-Universal-Image-Loader-Modify with Apache License 2.0 | 2 votes |
/** * Creates default implementation of {@link BitmapDisplayer} - {@link SimpleBitmapDisplayer} * 创建图片默认的显示器 */ public static BitmapDisplayer createBitmapDisplayer() { return new SimpleBitmapDisplayer(); }