本文整理汇总了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();
}
}
示例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()));
}
}
}
示例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);
}
示例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();
}
}
示例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()));
}
}
}
示例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);
}