ketain / barcodefraglibv2

Automatically exported from code.google.com/p/barcodefraglibv2
0 stars 0 forks source link

Camera preview's aspect ratio is wrong (both in portrait and landscape) when surfaceview is inflated in half screen view. #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Inflate a fragment into a layout that takes half of the view
2. Run the application
3. You'll notice that the image is stretched without mantaining the original 
aspect ratio.

What is the expected output? What do you see instead?
The user expects to see the camera preview image with correct aspect ratio. 
Instead, he will see the image stretched to match the parent view. 

What version of the product are you using? On what operating system?
barcodefraglibv2 with android 4.1.1 (but I've seen the same behaviour with 
android 4.4.2 and 4.3).

Original issue reported on code.google.com by Fabiofigo71 on 13 Jul 2014 at 2:52