The Developer Preview for Android 11 is now available; test it out and share your feedback.

FixedSizeTextureViewImplementation

public class FixedSizeTextureViewImplementation
extends Object

java.lang.Object
   ↳ androidx.camera.view.FixedSizeTextureViewImplementation


A TextureView implementation for PreviewView that uses a FixedSizeSurfaceTexture. TODO: This is a temporary fix for the distorted preview seen on both PreviewViewFragment and CameraViewFragment after onPause/onResume (b/146048690), and will be removed after the TextureView's view parameters are modified instead of applying a transform matrix on it.

Summary

Public constructors

FixedSizeTextureViewImplementation()

Public methods

Preview.PreviewSurfaceProvider getPreviewSurfaceProvider()
void init(FrameLayout parent)

Inherited methods

Public constructors

FixedSizeTextureViewImplementation

public FixedSizeTextureViewImplementation ()

Public methods

getPreviewSurfaceProvider

public Preview.PreviewSurfaceProvider getPreviewSurfaceProvider ()

Returns
Preview.PreviewSurfaceProvider

init

public void init (FrameLayout parent)

Parameters
parent FrameLayout