How to use Zxing in portrait mode?

前端 未结 9 927
离开以前
离开以前 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

    Please check as following (Official Documentation)

    Add this activity to manifest file

    
    

    Set integrator OrientationLocked to false

    IntentIntegrator integrator = new IntentIntegrator(this);
    integrator.setOrientationLocked(false);
    integrator.initiateScan();
    

    Hope this helps

提交回复
热议问题