Testing on my Xiaomi Redmi Note 6 Pro, I have the black bottom - almost half screen black background.
If I change color of the RelativeLayout in activity_main.xml - I have other like orange, blue, etc.
Setting to transparent window or transparent color, using fui_transparent or either over drawable did not helped me.
Figure it out, as taken from Camera2 Google, it has to be something with it.
Testing on my Xiaomi Redmi Note 6 Pro, I have the black bottom - almost half screen black background.
If I change color of the RelativeLayout in activity_main.xml - I have other like orange, blue, etc. Setting to transparent window or transparent color, using fui_transparent or either over drawable did not helped me.
Figure it out, as taken from Camera2 Google, it has to be something with it.
File: AutoFitTextureView.kt
Change this:
to this:
Also, if needed consider editing @+id/camera_texture_view of the AutoFitTextureView:
or vice versa.