我一直在研究 Android 尤其是 View 系统。 我对它们之间的差异有疑问,但我的母语没有文件或引用资料。所以我想从你们那里知道。
最佳答案
纹理 View
TextureView 可用于显示内容流。例如,这样的内容流可以是视频或 OpenGL 场景。
示例:
https://github.com/dalinaum/TextureViewDemo
文件:
http://developer.android.com/reference/android/view/TextureView.html
SurfaceView
提供嵌入 View 层次结构中的专用绘图表面。
示例:
http://www.mindfiresolutions.com/Using-Surface-View-for-Android-1659.php
http://blog.wisecells.com/2012/06/04/surface-view-android/
文件:
http://developer.android.com/reference/android/view/SurfaceView.html
关于android - Surfaceview 和 TextureView 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16916877/