Android Zxing change orientation to portrait

前端 未结 9 982
青春惊慌失措
青春惊慌失措 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:49

    Well I made a small change in ProjectLibrary (xzing project) and able to change orientation landscape to portrait

    In setDesiredCameraParameters method of class CameraConfigurationManager added

    camera.setDisplayOrientation(90);

    .. in my original project's AndroidManifest.xml file. I set screenOrientation = portrait and Its working fine on my ICS 4.0.3

       
            
                
    
                
            
         
    

提交回复
热议问题