SurfaceView和View的区别? [英] Difference between SurfaceView and View?

查看:253
本文介绍了SurfaceView和View的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

何时有必要或者更好地使用 SurfaceView 而不是查看

解决方案

视图都在同一个GUI线程上绘制,它也用于所有用户交互。



因此,如果您需要快速更新GUI,或者如果渲染花费太多时间并影响用户体验,请使用 SurfaceView


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

解决方案

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

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

这篇关于SurfaceView和View的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆