googlesamples / googlesamples/mlkit

Material Showcase: Camera view of barcode scanner not fullscreen

Open
#116 4 comments 0 reactions 1 assignee Claimed by @zhouyiself View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

I have been tinkering with the details of the barcode scanner sample in the material showcase app. On my Sony XPERIA XZ2 running Android 10, the camera view is not fullscreen though. There is a black bar at the bottom of the screen. I have taken a screenshot where I made this more obvious by removing the scrim and changing the background color of the activity to white.

I am new to Android and Kotlin and have so far been unable fully understand CameraSourcePreview code. Where do I need to make adjustments in order to change this behavior?

![Screenshot](https://user-images.githubusercontent.com/10243309/90868487-2f383100-e397-11ea-9bb0-8de3eeb90a6b.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.