dm77 / barcodescanner

Barcode Scanner Libraries for Android
Other
5.46k stars 1.43k forks source link

Preview is cliped and camera preview is not roated even after changing the orientation #495

Closed chaitanya-vanapamala closed 4 years ago

chaitanya-vanapamala commented 5 years ago

When activity opened in portrait mode it is working fine but when we change the orientation to landscape it is clipping the bottom part as shown in below image, and also the preview orientation is not right, it is showing preview in reverse_portrait view. I have followed https://github.com/dm77/barcodescanner/blob/master/zxing-sample/src/main/java/me/dm7/barcodescanner/zxing/sample/SimpleScannerActivity.java. library version : 1.9.8 Devices: I have tried Honor play, pixel all versions, Samsung tablets. I thinks it is happening in almost all devices. Screenshot_20190821-165145

abkoradiya commented 5 years ago

in 1.9.13 also.

abkoradiya commented 5 years ago

in 1.9.13 also.

Solved by removed "orientation|screenSize" from android:configChanges in manifest.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.