-
-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black area when CameraView is resized (using SurfaceViewPreview) #41
Comments
So you just open app then set these dimensions? |
First i created my own app with your library, it has same issue. Then I clone your example, and it has same issue too. |
@Monster-king You didn't answer though :) please use the demo app, then describe clearly the steps to reproduce the bug, then post the logs you see in the logcat. The demo app will log a lot of useful things. |
@natario1 At the moment I've installed the app to my Samsung J1 2016 phone, changed the height to 480 (because in width is 480 too). When I pressed the update button I took the message "Height updated! Internal preview size: 640x480". Preview has black area like that screen. Here all logs. |
@Monster-king thanks! If you open |
@natario1 Relative layout removed, nothing changed. |
That's disappointing :) I don't know what's wrong right now, but If you have some time, you could do the following test:
Then tell me what colour you see in that area that is black now. Just to see what it belongs to. If it's red, then what if you remove the RelativeLayout? |
Nevermind, I was able to reproduce on another device. I will take a look myself |
So, this is a bug with low end devices that have In that case The current workaround for these devices is to use wrap content for both dimensions. |
I don't think so, because preview looks like compressed by height. Do you tested it in another device? |
@Monster-king can you try now? Demo app has changed and also a surface bug was fixed. |
@natario1 Fixed. |
Width: 1080
Height: 1080
The text was updated successfully, but these errors were encountered: