本文整理了Java中android.graphics.Path.set()
方法的一些代码示例,展示了Path.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Path.set()
方法的具体详情如下:
包路径:android.graphics.Path
类名称:Path
方法名:set
暂无
代码示例来源:origin: airbnb/lottie-android
@Override public Path getPath() {
if (isPathValid) {
return path;
}
path.reset();
if (hidden) {
isPathValid = true;
return path;
}
path.set(shapeAnimation.getValue());
path.setFillType(Path.FillType.EVEN_ODD);
Utils.applyTrimPathIfNeeded(path, trimPath);
isPathValid = true;
return path;
}
代码示例来源:origin: florent37/DiagonalLayout
@Override
public void setupClipLayout(int width, int height) {
path.reset();
final Path clipPath = createClipPath(width, height);
if (clipPath != null) {
path.set(clipPath);
}
}
代码示例来源:origin: florent37/ShapeOfView
@Override
public void setupClipLayout(int width, int height) {
path.reset();
final Path clipPath = createClipPath(width, height);
if (clipPath != null) {
path.set(clipPath);
}
}
代码示例来源:origin: robolectric/robolectric
@Implementation
protected void offset(float dx, float dy, Path dst) {
if (dst != null) {
dst.set(realObject);
} else {
dst = realObject;
}
dst.offset(dx, dy);
}
代码示例来源:origin: scwang90/SmartRefreshLayout
mDropTangentPath.lineTo((float) p2, (float) q);
mDropTangentPath.close();
mShadowPath.set(mDropTangentPath);
mShadowPath.addOval(mDropRect, Path.Direction.CCW);
mDropCirclePath.addOval(mDropRect, Path.Direction.CCW);
代码示例来源:origin: airbnb/lottie-android
BaseKeyframeAnimation<?, Path> maskAnimation = this.mask.getMaskAnimations().get(i);
Path maskPath = maskAnimation.getValue();
path.set(maskPath);
path.transform(matrix);
代码示例来源:origin: airbnb/lottie-android
firstPath.set(lastContent.getPath());
代码示例来源:origin: florent37/ShapeOfView
@Override
public void requiresShapeUpdate() {
borderRectF.set(borderWidthPx / 2f, borderWidthPx / 2f, getWidth() - borderWidthPx / 2f, getHeight() - borderWidthPx / 2f);
borderPath.set(generatePath(borderRectF,
topLeftRadius,
topRightRadius,
bottomRightRadius,
bottomLeftRadius
));
super.requiresShapeUpdate();
}
代码示例来源:origin: dinuscxj/LoadingDrawable
mWaitPath.set(createWaitPath(mCurrentBounds));
mWaitPathMeasure.setPath(mWaitPath, false);
mWaitPathLength = mWaitPathMeasure.getLength();
代码示例来源:origin: florent37/DiagonalLayout
clipManager.setupClipLayout(width, height);
clipPath.reset();
clipPath.set(clipManager.createMask(width, height));
代码示例来源:origin: florent37/ShapeOfView
clipManager.setupClipLayout(width, height);
clipPath.reset();
clipPath.set(clipManager.createMask(width, height));
代码示例来源:origin: airbnb/lottie-android
path.set(maskPath);
path.transform(matrix);
BaseKeyframeAnimation<Integer, Integer> opacityAnimation =
代码示例来源:origin: airbnb/lottie-android
tempPath.addPath(tempPath2);
path.set(tempPath);
L.endSection("applyTrimPathIfNeeded");
代码示例来源:origin: airbnb/lottie-android
trimPathPath.set(pathGroup.paths.get(j).getPath());
trimPathPath.transform(parentMatrix);
pm.setPath(trimPathPath, false);
代码示例来源:origin: dinuscxj/LoadingDrawable
@Override
protected void computeRender(float renderProgress) {
if (mCurrentBounds.isEmpty()) {
return;
}
if (mMotherMovePath.isEmpty()) {
mMotherMovePath.set(createMotherMovePath());
mMotherMovePathMeasure.setPath(mMotherMovePath, false);
mChildMovePath.set(createChildMovePath());
mChildMovePathMeasure.setPath(mChildMovePath, false);
}
//mother oval
float motherMoveProgress = MOTHER_MOVE_INTERPOLATOR.getInterpolation(renderProgress);
mMotherMovePathMeasure.getPosTan(getCurrentMotherMoveLength(motherMoveProgress), mMotherPosition, null);
mMotherOvalHalfWidth = mMaxMotherOvalSize;
mMotherOvalHalfHeight = mMaxMotherOvalSize * getMotherShapeFactor(motherMoveProgress);
//child Oval
float childMoveProgress = CHILD_MOVE_INTERPOLATOR.getInterpolation(renderProgress);
mChildMovePathMeasure.getPosTan(getCurrentChildMoveLength(childMoveProgress), mChildPosition, null);
setupChildParams(childMoveProgress);
mRotateDegrees = (int) (Math.toDegrees(Math.atan((mMotherPosition[1] - mChildPosition[1]) /
(mMotherPosition[0] - mChildPosition[0]))));
mRevealCircleRadius = getCurrentRevealCircleRadius(renderProgress);
mCurrentOvalColor = getCurrentOvalColor(renderProgress);
mCurrentBackgroundColor = getCurrentBackgroundColor(renderProgress);
}
代码示例来源:origin: florent37/ArcLayout
@Override
public void setupClipLayout(int width, int height) {
path.reset();
final Path clipPath = createClipPath(width, height);
if (clipPath != null) {
path.set(clipPath);
}
}
代码示例来源:origin: moagrius/TileView
@Override
public void decorate(Canvas canvas) {
for (DrawablePath drawablePath : mDrawablePaths) {
mRecyclerPath.set(drawablePath.getPath());
canvas.drawPath(mRecyclerPath, drawablePath.getPaint());
}
}
代码示例来源:origin: florent37/ArcLayout
clipManager.setupClipLayout(width, height);
clipPath.reset();
clipPath.set(clipManager.createMask(width, height));
代码示例来源:origin: mcxtzhang/PathAnimView
animPath.set(mStonePath);
代码示例来源:origin: org.robolectric/shadows-framework
@Implementation
protected void offset(float dx, float dy, Path dst) {
if (dst != null) {
dst.set(realObject);
} else {
dst = realObject;
}
dst.offset(dx, dy);
}
内容来源于网络,如有侵权,请联系作者删除!