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


Java DraweeView.post方法代码示例

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


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

示例1: setScale

import com.facebook.drawee.view.DraweeView; //导入方法依赖的package包/类
@Override public void setScale(float scale, float focalX, float focalY, boolean animate) {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();

    if (draweeView == null || scale < mMinScale || scale > mMaxScale) {
        return;
    }

    if (animate) {
        draweeView.post(new AnimatedZoomRunnable(getScale(), scale, focalX, focalY));
    } else {
        mMatrix.setScale(scale, scale, focalX, focalY);
        checkMatrixAndInvalidate();
    }
}
 
开发者ID:lanyuanxiaoyao,项目名称:PicKing,代码行数:15,代码来源:Attacher.java

示例2: checkMinScale

import com.facebook.drawee.view.DraweeView; //导入方法依赖的package包/类
private void checkMinScale() {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView == null) {
        return;
    }

    if (getScale() < mMinScale) {
        RectF rect = getDisplayRect();
        if (null != rect) {
            draweeView.post(new AnimatedZoomRunnable(getScale(), mMinScale, rect.centerX(),
                    rect.centerY()));
        }
    }
}
 
开发者ID:lanyuanxiaoyao,项目名称:PicKing,代码行数:15,代码来源:Attacher.java

示例3: onFling

import com.facebook.drawee.view.DraweeView; //导入方法依赖的package包/类
@Override public void onFling(float startX, float startY, float velocityX, float velocityY) {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView == null) {
        return;
    }

    mCurrentFlingRunnable = new FlingRunnable(draweeView.getContext());
    mCurrentFlingRunnable.fling(getViewWidth(), getViewHeight(), (int) velocityX,
            (int) velocityY);
    draweeView.post(mCurrentFlingRunnable);
}
 
开发者ID:lanyuanxiaoyao,项目名称:PicKing,代码行数:12,代码来源:Attacher.java

示例4: setScale

import com.facebook.drawee.view.DraweeView; //导入方法依赖的package包/类
@Override
public void setScale(float scale, float focalX, float focalY, boolean animate) {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();

    if (draweeView == null || scale < mMinScale || scale > mMaxScale) {
        return;
    }

    if (animate) {
        draweeView.post(new AnimatedZoomRunnable(getScale(), scale, focalX, focalY));
    } else {
        mMatrix.setScale(scale, scale, focalX, focalY);
        checkMatrixAndInvalidate();
    }
}
 
开发者ID:gzsll,项目名称:TLint,代码行数:16,代码来源:Attacher.java

示例5: checkMinScale

import com.facebook.drawee.view.DraweeView; //导入方法依赖的package包/类
private void checkMinScale() {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView == null) {
        return;
    }

    if (getScale() < mMinScale) {
        RectF rect = getDisplayRect();
        if (null != rect) {
            draweeView.post(
                    new AnimatedZoomRunnable(getScale(), mMinScale, rect.centerX(), rect.centerY()));
        }
    }
}
 
开发者ID:gzsll,项目名称:TLint,代码行数:15,代码来源:Attacher.java

示例6: onFling

import com.facebook.drawee.view.DraweeView; //导入方法依赖的package包/类
@Override
public void onFling(float startX, float startY, float velocityX, float velocityY) {
    DraweeView<GenericDraweeHierarchy> draweeView = getDraweeView();
    if (draweeView == null) {
        return;
    }

    mCurrentFlingRunnable = new FlingRunnable(draweeView.getContext());
    mCurrentFlingRunnable.fling(getViewWidth(), getViewHeight(), (int) velocityX, (int) velocityY);
    draweeView.post(mCurrentFlingRunnable);
}
 
开发者ID:gzsll,项目名称:TLint,代码行数:12,代码来源:Attacher.java


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