PathEffectView.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:android-study 作者:
public PathEffectView(Context context, AttributeSet attrs) {
  super(context, attrs);
  mPaint = new Paint();
  mPaint.setStyle(Paint.Style.STROKE);
  mPaint.setStrokeWidth(5);
  mPaint.setColor(Color.DKGRAY);
  mPath = new Path();
  mPath.moveTo(0, 0);
  for (int i = 0; i <= 30; i++) {
    mPath.lineTo(i * 35, (float) (Math.random() * 100));
  }
  mEffects = new PathEffect[6];
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号