2016-07-28 34 views
0

現在我正在學習如何在android中使用pathmeasure。我有3種途徑:entryPathleftPathrightPath。當我想這些路徑添加到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)和我得到他們的路徑在屏幕上。

回答