Closed roostaamir closed 6 years ago
I think the issue here is that you are embedding the fragment within another fragment (so it's a child fragment) and somehow it's failing to calculate the right aspect fit for the fragment's size. I'll look into it when I can manage some time. If you are trying to solve it yourself then look into onLayout
method of the CameraSourcePreview.java
file. The issue is most probably in that function.
This is not the same issue as issue #16 that you closed. With this issue, the camera preview is out of bounds, and not stretched. With issue #16, the camera preview is not out of bounds but it is stretched. In that issue, when the activity is paused and then resumed again, the camera preview will be fixed. Please reopen the issue. Could you reopen issue #16 and help me with that one too?
@roostaamir can you pleas test the ScannerDialog
in the issue_15_16
branch (just tap the Scan with Dialog
button) and let me know if you can still reproduce the issue?
closing as it seems to be solved. Reopen if you still face this issue.
Hi again and thank you again for this library I am trying to create a dialog in the activity in which the
BarcodeFragment
lives. I thought that my only option (probably) is aDialogFragment
So I created one like this:this is the dialog's layout file:
The problem is that the camera viewfinder will get either expanded out of the dialog(galaxy s8+), or it will be too small for the whole dialog that a white bar is still visible above the camera viewfinder. Is there a way or a suggestion you can give me to achieve my goal?