0
今、私はAndroidでパスメジャーを使用する方法を学習しています。私はmTickMeasure.getLenth()
がentryPathに等しい持っている問題を抱えしかしAndroidでのPathMeasure
mTickPath.addPath(entryPath);
mTickPath.addPath(leftPath);
mTickPath.addPath(rightPath);
mTickMeasure = new PathMeasure(mTickPath, false);
// mTickMeasure is a PathMeasure
:
entryPath
、
leftPath
と
rightPath
.When私はpathmeasureにこれらのパスを追加したい、私はこれを試してみました:私は3つのパスを持っています。
mTickPath
は
entryPath
と同じではありません
canvas.drawPath(mTickPath,paint)
を使用しましたが、画面上にそのパスが表示されます。
ありがとうございます。 – CoXier