Android Zxing change orientation to portrait

前端 未结 9 989
青春惊慌失措
青春惊慌失措 2020-12-12 19:29

I\'m trying to rotate Zxing display after reading a few questions and posts about the issue. After following the instructions, the display did rotate, but the rectangle of t

9条回答
  •  忘掉有多难
    2020-12-12 19:52

    After a lot of struggling, I found the problem, and I hope it will help someone in the future.

    On initFromCameraParameters method in CameraConfigurationManager there is an assumption that the scan is ALWAYS in landscape mode, and therefor a fix when width < height. If You follow the steps in the question and remove this check, it works fine.

提交回复
热议问题