-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
Description
I'm facing some issues of your CameraX sample app when running on my testing device. The problem is that the preview is not fully displayed (screenshot below).
After some investigation, I can confirm it happens in both camera-view versions alpha09
and alpha10
(alpha08
works fine). If I set the preferredImplementationMode
to use TextureView
(as recommended in the documentation), then the issue disappears.
val camera = cameraProvider.bindToLifecycle(lifecycleOwner, cameraSelector, preview)
previewView.preferredImplementationMode = ImplementationMode.TEXTURE_VIEW
preview.setSurfaceProvider(previewView.createSurfaceProvider(camera.cameraInfo))
However, taking into account this comment, seems that it is not recommended:
Screenshot
Device information
- Device name: Samsung Galaxy Note5
- Model: SM-N920C
- Android version: 7
Metadata
Metadata
Assignees
Labels
No labels