Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SurfaceView vs TextureView for Camera?

I want to incorporate a camera feature in my app, that will allow layout transitions of the view itself, changing its size, its preview size, and handle orientation changes efficiently. Should I use TextureView or SurfaceView?

Decisions decisions..

like image 864
OferM Avatar asked Dec 01 '14 09:12

OferM


1 Answers

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

like image 87
Sachini Samarasinghe Avatar answered Oct 23 '22 02:10

Sachini Samarasinghe