Overlapping GLSurfaceView on SurfaceView and vice versa
问题 ExoPlayer - SurfaceView Camera2 + MediaCodec - GLSurfaceView I am using the above view groups for playing video and camera recording. UI-1: Exo-Surf at the center and Cam-GLS in the top right corner. UI-2: Cam-GLS at the center and Exo-Surf in the top right corner. To achieve this I am using setZOrderOnTop to set z-index, as both are inside RelativeLayout. (exoPlayerView.videoSurfaceView as? SurfaceView)?.setZOrderOnTop(true/false) It seems working fine on Samsung S9+ with API 29 - Android 10