安卓:SurfaceView和景观之间的区别?景观、区别、SurfaceView

由网友(过不去的过去)分享简介:当它是必要的,或者最好使用景色的SurfaceView呢?When is it necessary, or better to use a SurfaceView instead of a View?推荐答案意见都得出相同的GUI线程它也适用于所有用户的交互上。Views are all drawn on th...

当它是必要的,或者最好使用景色的SurfaceView呢?

When is it necessary, or better to use a SurfaceView instead of a View?

推荐答案

意见都得出相同的GUI线程它也适用于所有用户的交互上。

Views are all drawn on the same GUI thread which is also used for all user interaction.

所以,如果你需要快速更新的GUI或渲染需要太多时间,影响用户体验,然后用SurfaceView。

So if you need to update GUI rapidly or if the rendering takes too much time and affects user experience then use SurfaceView.

阅读全文

相关推荐

最新文章