-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
勾的绘制速度好慢 #10
Comments
可修改line 283, line 311.
'step' 变量为控制单次绘制对勾的增量。需要注意,如果单次绘制的增量过大,会导致不够平滑。 不过这确实是设计上的一个缺陷,如果CheckBox宽高比较小的话,的确会绘制比较慢,这个我等不忙后改一下。你暂时可以用上面的解决方案。 |
一般checkbox都比较小,不会有明显的平滑问题,像我这边项目的checkbox在调试机上实际才56px,我改了代码分成5次绘制,效果好多了,一次绘制耗时10-20ms左右,5次不超过100ms,加上背景圆设置为200ms,一共不超过300ms,对于checkbox来说感觉比较能接受。 |
还有个小问题, |
Sometimes will appeal the hook is incompleteness. And I make it to be. if (mDrewDistance - step < mLeftLineDistance + mRightLineDistance) .But some problems also appeal the postInvalidate exect all the time. |
勾的绘制速度好慢,有没有什么办法加快呢
The text was updated successfully, but these errors were encountered: