public LollipopView(Wrapped wrapped, boolean top) {
this.wrapped = new WeakReference<>(wrapped);
this.top = top;
Path startPath = new Path();
startPath.lineTo(0.5f, 0f);
startPath.cubicTo(0.7f, 0f, 0.6f, 1f, 1f, 1f);
startInterpolator = new PathInterpolator(startPath);
Path endPath = new Path();
endPath.cubicTo(0.2f, 0f, 0.1f, 1f, 0.5f, 1f);
endPath.lineTo(1f, 1f);
endInterpolator = new PathInterpolator(endPath);
ringPaint.setStyle(Paint.Style.STROKE);
ringPaint.setStrokeCap(Paint.Cap.SQUARE);
ringPaint.setStrokeJoin(Paint.Join.MITER);
}
PullableWrapper.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:Dashchan
作者:
评论列表
文章目录