Is there any way of showing the camera preview, but without the black stripes on the sides. In my case i have toolbar and bottom navigation stripe, so i am showing the FrameLayout between these two elements. The Camera preview is showing in center but with black stripes on the sides. Is there any way of scaling the SurfaceView to fill this space, without losing the aspect ratio, in order to get the Camera Preview in full screen (fill screen)?
Thank you in advance,
Nikola
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
doesn't changing the resolution help? In my phone I go down one level from the highest resolution possible., It surely helps., (because the actual phone camera aspect ratio is different from the one of the screen)., and if you're talking about the buttons on one side of the camera preview, try the immersive modes in settings> more camera controls.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-03-28
Got the same concern but found the solution from the settings. Set the camera preview as 'Maximum Preview" size and it will fill the entire screen ( atleast about 95%) of your phone screen. By default it si set to "match the photo size". In addittion if you wanted to use your phone as a second cam for live video recording, you may hide all the option in "on Screen GUI"> Immersive mode>Hide everything.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi,
Is there any way of showing the camera preview, but without the black stripes on the sides. In my case i have toolbar and bottom navigation stripe, so i am showing the FrameLayout between these two elements. The Camera preview is showing in center but with black stripes on the sides. Is there any way of scaling the SurfaceView to fill this space, without losing the aspect ratio, in order to get the Camera Preview in full screen (fill screen)?
Thank you in advance,
Nikola
I do not think it is possible or I do not find a way. But you can install xhalofloatingwindow app in xposed. If you find any way please write here.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
doesn't changing the resolution help? In my phone I go down one level from the highest resolution possible., It surely helps., (because the actual phone camera aspect ratio is different from the one of the screen)., and if you're talking about the buttons on one side of the camera preview, try the immersive modes in settings> more camera controls.
Got the same concern but found the solution from the settings. Set the camera preview as 'Maximum Preview" size and it will fill the entire screen ( atleast about 95%) of your phone screen. By default it si set to "match the photo size". In addittion if you wanted to use your phone as a second cam for live video recording, you may hide all the option in "on Screen GUI"> Immersive mode>Hide everything.