SurfaceView or TextureView combination
I am trying to apply real-time effects to camera preview and show in multiple views , how can I do? (just like the camera2 ) ( snapshot ) I know 2 approaches to show real-time effects on camera preivew if no ScrollView involved on the left side. Use GLSurfaceView and setRenderer . Bind SurfaceTexture as GLES external texture, and use GLSL(OpenGL Shading Language) to apply effects. Use TextureView . It is more complex because need to setup EGLContext/EGLSurface and do thread management. However, I don't know how to make ScrollView with real-time effect items overlay GLES composition. Should I