card.io-Android-source icon indicating copy to clipboard operation
card.io-Android-source copied to clipboard

Layout for EXTRA_SCAN_OVERLAY_LAYOUT_ID is not handled properly

Open rexmtorres opened this issue 7 years ago • 1 comments

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 avatar Jan 31 '18 11:01 rexmtorres

anyone fix this issue ?

thanghs6714-seta avatar Dec 21 '18 11:12 thanghs6714-seta