Vertical scanner in portrait screen mode
See original GitHub issueI’m using custom scanner through DecoratedBarcodeView
in my Fragment
(like in example of Activity Custom Scanner).
Everything works perfect, but if phone in portrait mode - scanner line and detection are horizontal.
Could you help me please, how can I make it vertical (just for giving scanner mode data to scan), if phone will be only in portrait mode (it’s locked to portrait mode)?
Like this:
Thanks in advance!
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Android Zxing change orientation to portrait - Stack Overflow
I'm a developer of Barcode Scanner. Yes, it takes a lot more than this to make it scan in portrait mode. You have...
Read more >How to connect Android Phone to Monitor in Portrait or ...
How to connect a Phone to TV monitor using type C USB cable portrait vertical or landscape horizontal modes. I used samsung s9, ......
Read more >Vertical vs Portrait Screens for Work: What are the Benefits ...
In addition, a vertical screen reduces the range of movement of your eyes, meaning that you can scan or view more content faster,...
Read more >What Are Vertical Monitors Used For? | Learn the Benefits
Another perk of a monitor in portrait mode is that you get to see fewer ads in between the content as most ads...
Read more >How To Set Scanned Output to Portrait or Landscape Orientation
Place an Original onto the Document Feeder or Document Glass. · Select the required scanning app. · Select any required Scan options. ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is no built-in way to do this, so you’ll have to dig into the source.
There are two parts to this:
The UI. This means changing / overriding ViewfinderView.
The decoding. For some barcodes (e.g. QR codes), the orientation doesn’t matter. For others such as 1D barcodes, the TRY_HARDER hint may cause it to scan in both directions. Alternatively, you can rotate the image before decoding (may require changing the library source). You can do this by creating a custom Decoder and DecoderFactory.
Moving discussion to #211.