0
現在我正在學習如何在android中使用pathmeasure。我有3種途徑:entryPath
,leftPath
和rightPath
。當我想這些路徑添加到pathmeasure,我嘗試這樣做:Android中的PathMeasure
mTickPath.addPath(entryPath);
mTickPath.addPath(leftPath);
mTickPath.addPath(rightPath);
mTickMeasure = new PathMeasure(mTickPath, false);
// mTickMeasure is a PathMeasure
不過,我有一個問題,我有mTickMeasure.getLenth()
等於該entryPath。 mTickPath
是不一樣的entryPath
我已經使用canvas.drawPath(mTickPath,paint)
和我得到他們的路徑在屏幕上。
Thanks.I get it it – CoXier