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


Java ImageFixCallback类代码示例

本文整理汇总了Java中com.zzhoujay.richtext.callback.ImageFixCallback的典型用法代码示例。如果您正苦于以下问题:Java ImageFixCallback类的具体用法?Java ImageFixCallback怎么用?Java ImageFixCallback使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: RichTextConfig

import com.zzhoujay.richtext.callback.ImageFixCallback; //导入依赖的package包/类
private RichTextConfig(String source, int richType, boolean autoFix, boolean resetSize, @CacheType int cacheType,
                       ImageFixCallback imageFixCallback, LinkFixCallback linkFixCallback, boolean noImage,
                       int clickable, OnImageClickListener onImageClickListener, OnUrlClickListener onUrlClickListener,
                       OnImageLongClickListener onImageLongClickListener, OnUrlLongClickListener onUrlLongClickListener,
                       Drawable placeHolder, Drawable errorImage, ImageGetter imageGetter, Callback callback,
                       boolean autoPlay, @ImageHolder.ScaleType int scaleType, int width, int height,
                       ImageHolder.BorderHolder borderHolder, boolean singleLoad, boolean useCache) {
    this.source = source;
    this.richType = richType;
    this.autoFix = autoFix;
    this.resetSize = resetSize;
    this.imageFixCallback = imageFixCallback;
    this.linkFixCallback = linkFixCallback;
    this.noImage = noImage;
    this.cacheType = cacheType;
    this.onImageClickListener = onImageClickListener;
    this.onUrlClickListener = onUrlClickListener;
    this.onImageLongClickListener = onImageLongClickListener;
    this.onUrlLongClickListener = onUrlLongClickListener;
    this.placeHolder = placeHolder;
    this.errorImage = errorImage;
    this.imageGetter = imageGetter;
    this.callback = callback;
    this.scaleType = scaleType;
    this.autoPlay = autoPlay;
    this.width = width;
    this.height = height;
    this.borderHolder = borderHolder;
    this.singleLoad = singleLoad;
    if (clickable == 0) {
        if (onImageLongClickListener != null || onUrlLongClickListener != null ||
                onImageClickListener != null || onUrlClickListener != null) {
            clickable = 1;
        }
    }
    this.clickable = clickable;
    this.useCache = useCache;
}
 
开发者ID:nichbar,项目名称:Aequorea,代码行数:39,代码来源:RichTextConfig.java

示例2: RichTextConfig

import com.zzhoujay.richtext.callback.ImageFixCallback; //导入依赖的package包/类
private RichTextConfig(String source, RichType richType, boolean autoFix, boolean resetSize, CacheType cacheType,
                       ImageFixCallback imageFixCallback, LinkFixCallback linkFixCallback, boolean noImage,
                       int clickable, OnImageClickListener onImageClickListener, OnUrlClickListener onUrlClickListener,
                       OnImageLongClickListener onImageLongClickListener, OnUrlLongClickListener onUrlLongClickListener,
                       ImageGetter imageGetter, Callback callback, boolean autoPlay, ImageHolder.ScaleType scaleType,
                       int width, int height, DrawableBorderHolder borderHolder, boolean singleLoad,
                       ImageDownloader imageDownloader, DrawableGetter placeHolderDrawableGetter, DrawableGetter errorImageDrawableGetter) {
    this.source = source;
    this.richType = richType;
    this.autoFix = autoFix;
    this.resetSize = resetSize;
    this.imageFixCallback = imageFixCallback;
    this.linkFixCallback = linkFixCallback;
    this.noImage = noImage;
    this.cacheType = cacheType;
    this.onImageClickListener = onImageClickListener;
    this.onUrlClickListener = onUrlClickListener;
    this.onImageLongClickListener = onImageLongClickListener;
    this.onUrlLongClickListener = onUrlLongClickListener;
    this.imageGetter = imageGetter;
    this.callback = callback;
    this.scaleType = scaleType;
    this.autoPlay = autoPlay;
    this.width = width;
    this.height = height;
    this.borderHolder = borderHolder;
    this.singleLoad = singleLoad;
    this.imageDownloader = imageDownloader;
    this.placeHolderDrawableGetter = placeHolderDrawableGetter;
    this.errorImageDrawableGetter = errorImageDrawableGetter;
    if (clickable == 0) {
        if (onImageLongClickListener != null || onUrlLongClickListener != null ||
                onImageClickListener != null || onUrlClickListener != null) {
            clickable = 1;
        }
    }
    this.clickable = clickable;

    argsPool = new HashMap<>();
}
 
开发者ID:zzhoujay,项目名称:RichText,代码行数:41,代码来源:RichTextConfig.java

示例3: fix

import com.zzhoujay.richtext.callback.ImageFixCallback; //导入依赖的package包/类
/**
 * 手动修复图片宽高
 *
 * @param callback ImageFixCallback回调
 * @return RichTextConfigBuild
 */
public RichTextConfigBuild fix(ImageFixCallback callback) {
    this.imageFixCallback = callback;
    return this;
}
 
开发者ID:nichbar,项目名称:Aequorea,代码行数:11,代码来源:RichTextConfig.java


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