Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用android制作一个绘图面板。我现在要做的是我必须重新绘制每条现有线条和新线条,因此当画布上的线条过多时,它会使我的应用程序运行缓慢。有没有什么可能的方法可以让我在画布上添加一些新点而其他点不消失?
谢谢你。
利用
invalidate(r);
在哪里
Rect r; // part of the screen