Android 字 成 圆
@Override protected void onDraw(Canvas canvas) { Paint paint = new Paint(); paint.setTextSize(50); paint.setAntiAlias(true); paint.setColor(Color.WHITE); Path path = new Path(); path.addCircle(200, 200, 100, Direction.CCW); canvas.drawTextOnPath("draw text circle, 字画成圆", path, 0, 0, paint); }
效果如下: