表面和帆布的关系:安卓 [英] Relationship between Surface and Canvas: Android
本文介绍了表面和帆布的关系:安卓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
到底什么是A面和画布之间的关系。
What exactly is the relationship between a Surface and Canvas.
请解释一下。
推荐答案
一个面的缓冲区。画布保存图纸。
A surface is a buffer. A Canvas holds the drawing.
视图不会附着在画布 也不是曲面。该窗口绑 一个面与所述的ViewRoot询问 表面的画布,然后用 通过视图上绘制。
Views are not attached to the Canvas nor the Surface. The window is tied to a Surface and the ViewRoot asks the Surface for a Canvas that is then used by the Views to draw onto.
对于相关详细anwser,你可以阅读这篇整个讨论< /一>,真的很有趣。
For a detailled anwser, you can read this whole discussion, really interesting.
这篇关于表面和帆布的关系:安卓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文