SurfaceView vs TextureView for camera?

I want to include the camera function in my application, which will allow me to effectively switch to the transition layouts of the view itself, changing its size, preview size and changing the orientation of the handle. Should I use TextureView or SurfaceView ?

Decision Making.

+7
android android-camera surfaceview textureview
source share
1 answer

According to your context, I suggest TextureView , because things like transformations, animations, and scaling are not possible with SurfaceView . But keep in mind that TextureView will consume more memory than SurfaceView .

+8
source share

All Articles