SurfaceView 和 TextureView

时间:2024-04-15 02:21:21

1.区别

The followings are two limitations of SurfaceView:

  • You can not be animated, transformed and scaled;
  • You can not overlay two SurfaceView.

TextureView looks like a general View. You can animate, transform and scale it, just like a TextView. TextureView can only be used in a hardware accelerated window. However, TextureView will consume much more memory than SurfaceView, and also may have a 1~3 frame latency. See the discussion on