Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Layout for EXTRA_SCAN_OVERLAY_LAYOUT_ID is not handled properly #158

Open
rexmtorres opened this issue Jan 31, 2018 · 1 comment
Open

Layout for EXTRA_SCAN_OVERLAY_LAYOUT_ID is not handled properly #158

rexmtorres opened this issue Jan 31, 2018 · 1 comment

Comments

@rexmtorres
Copy link

General information

  • SDK/Library version: 5.5.1
  • Android Version and Device: Motorola Moto X Play with Android 6.0.1

Issue description

I defined a layout XML (ocr_disclaimer_overlay.xml.txt) for some additional info. I specified this XML through the Intent extra, CardIOActivity.EXTRA_SCAN_OVERLAY_LAYOUT_ID. Additionally, my app is set to display in portrait mode only.

When CardIOActivity is launched while holding the device vertically (in portrait), my layout is displayed correctly as shown here: custom_overlay_ok

However, when CardIOActivity is launched while holding the phone horizontally (in landscape), my layout gets misplaced as shown here: custom_overlay_nok

What's more, after rotating the phone back from a landscape to a portrait position, the overlay layout stays hidden on the side. custom_overlay_nok2

rexmtorres added a commit to rexmtorres/card.io-Android-source that referenced this issue Feb 1, 2018
…ock the preview layout, including the overlay layout, in portrait mode, even when rotating the device.

card-io#158
rexmtorres added a commit to rexmtorres/card.io-Android-source that referenced this issue Feb 1, 2018
rexmtorres added a commit to rexmtorres/card.io-Android-source that referenced this issue Feb 3, 2018
…lock the scanner view in portrait mode, even when tilting/rotating the device.

card-io#158
@thanghs6714-seta
Copy link

anyone fix this issue ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants