How to use Zxing in portrait mode?

前端 未结 9 970
离开以前
离开以前 2020-12-01 07:48

Currently zxing library supports only on landscape mode.For my app i need to use in portrait mode

9条回答
  •  误落风尘
    2020-12-01 08:20

    I wanted to use the Barcode reader in portrait mode. I found the solution here as mentioned in a comment posted earlier in this thread. I thought of putting this as an answer so it is easier to find the solution for the people having the same problem.

    To use the scanner in portrait mode, you need to add the following activity in your AndroidManifest.xml.

    
    

    And that's it.

    See the link for more details.

提交回复
热议问题