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.
Surface 和 Canvas 之间的关系到底是什么。
请解释。
表面是缓冲区。画布保存绘图。
视图不附加到画布或表面。窗口与 Surface 相关联,ViewRoot 向 Surface 请求 Canvas,然后 Views 使用该 Canvas 进行绘制。
对于详细的答案,您可以阅读整个讨论,非常有趣。