Try this in the constructor:
SurfaceView sfvTrack = (SurfaceView)findViewById(R.id.sfvTrack);
sfvTrack.setZOrderOnTop(true); // necessary
SurfaceHolder sfhTrackHolder = sfvTrack.getHolder();
sfhTrackHolder.setFormat(PixelFormat.TRANSPARENT);
More Related Contents:
- Android Take Screenshot of Surface View Shows Black Screen
- Android Camera Preview Stretched
- How to set Android camera orientation properly?
- How to draw an overlay on a SurfaceView used by Camera on Android?
- Android, canvas: How do I clear (delete contents of) a canvas (= bitmaps), living in a surfaceView?
- How to have a transparent ImageButton: Android
- Take Screenshot of SurfaceView
- Overlay images onto Camera preview SurfaceView
- Camera Tutorial for Android (using surfaceview)
- SurfaceView flashes black on load
- Taking screenshot programmatically doesnt capture the contents of surfaceVIew
- How to capture image from custom CameraView in Android?
- Take a screenshot using MediaProjection
- Fragments – The specified child already has a parent. You must call removeView() on the child’s parent first
- How to play multiple video files simultaneously in one layout side by side in different view in Android
- Custom camera android
- Rotating an android VideoView
- how to create and save a screenshot from a surfaceview?
- Understanding Canvas and Surface concepts
- How SurfaceHolder callbacks are related to Activity lifecycle?
- Minimize Android GLSurfaceView lag
- Android SurfaceView scrolling
- Fitting a camera preview to a SurfaceView larger than the display
- Make a SurfaceView larger than the screen (Fitting a camera preview to a SurfaceView larger than the display)
- How to resize a bitmap eficiently and with out losing quality in android
- how to pause and resume a surfaceView thread
- Should the renderingThread of a SurfaceView have the same life-cycle as the view or the activity?
- Android Multiple SurfaceViews
- Android – shadow on text?
- Suggestions to avoid bitmap Out of Memory error