Android Question Camera2 stretches preview


Active Member
Licensed User
Hello my friends,

I am using camera2 api but some users reported me that preview screen stretch out objects. I see at example that we set preview size 1920x1080 but at some smartphones is not suitable. I have searched at stackoverflow, many users have same problem.

This solution is no longer available cause different api.

Is there any universal solution for this problem?

Thank you for your time.