SurfaceViewNotCroppedByParentQuirk

@RequiresApi(21) open class SurfaceViewNotCroppedByParentQuirk : Quirk
kotlin.Any
   ↳ androidx.camera.previewview.internal.quirk.SurfaceViewNotCroppedByParentQuirk

A quirk where a scaled up SurfaceView is not cropped by the parent View.

On certain Xiaomi devices, when the scale type is FILL_* and the preview is scaled up to be larger than its parent, the SurfaceView is not cropped by its parent. As the result, the preview incorrectly covers the neighboring UI elements. b/211370840

Summary

Public constructors

A quirk where a scaled up SurfaceView is not cropped by the parent View.

Public constructors

SurfaceViewNotCroppedByParentQuirk

SurfaceViewNotCroppedByParentQuirk()

A quirk where a scaled up SurfaceView is not cropped by the parent View.

On certain Xiaomi devices, when the scale type is FILL_* and the preview is scaled up to be larger than its parent, the SurfaceView is not cropped by its parent. As the result, the preview incorrectly covers the neighboring UI elements. b/211370840