You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sample app, when I add 20 pages, it become very very slow and completely unusable.
I found it's caused by a line code in InkPageIndicator.drawUnselected(Canvas canvas).
......
// draw any settled, revealing or joining dots
for (int page = 0; page < pageCount; page++) {
int nextXIndex = page == pageCount - 1 ? page : page + 1;
Path unselectedPath = getUnselectedPath(page,
dotCenterX[page],
dotCenterX[nextXIndex],
page == pageCount - 1 ? INVALID_FRACTION : joiningFractions[page],
dotRevealFractions[page]); unselectedPath.addPath(combinedUnselectedPath);
combinedUnselectedPath.addPath(unselectedPath);
}
......
I don't known why the bold line is need there? but when I delete it, this issue disappeared.
the bold line and the under line, seem will add some circle paths to the final draw path very much times, so it cause this issue.
Please pardon my poor english!
The text was updated successfully, but these errors were encountered:
In sample app, when I add 20 pages, it become very very slow and completely unusable.
I found it's caused by a line code in InkPageIndicator.drawUnselected(Canvas canvas).
......
// draw any settled, revealing or joining dots
for (int page = 0; page < pageCount; page++) {
int nextXIndex = page == pageCount - 1 ? page : page + 1;
Path unselectedPath = getUnselectedPath(page,
dotCenterX[page],
dotCenterX[nextXIndex],
page == pageCount - 1 ? INVALID_FRACTION : joiningFractions[page],
dotRevealFractions[page]);
unselectedPath.addPath(combinedUnselectedPath);
combinedUnselectedPath.addPath(unselectedPath);
}
......
I don't known why the bold line is need there? but when I delete it, this issue disappeared.
the bold line and the under line, seem will add some circle paths to the final draw path very much times, so it cause this issue.
Please pardon my poor english!
The text was updated successfully, but these errors were encountered: