G00fY2 / quickie

📷🔍 Android QR code scanning library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Size of preview camera

satriawarn opened this issue · comments

Hi, it's not issue. I'm wondering how to change the square in preview camera to rectangle, or just dynamic size.

Thank you

Hi @satriawarn, you would like to change the corner radius and the generell size of the scanner overlay frame?

You should be aware that due to limitations of ML Kit currently the whole image gets scanned, so the frame is just a visual decoration (#18). Currently the corner radius is taken form Android AOSP scanner, so it matches Googles Design Guidelines. The size is dynamically calculated (it always takes 3/4 of the screen width). I made sure it also looks good on tablet and other devices sizes.

Maybe you could specify what your final design should look like. :)

Like this, I hope it's explain

image

Okay, that makes it clear. I understand that this layout fit's better for traditional Code128 barcodes.

Will see if I find some time to make the shape customizable. Thanks for sharing your feature request!

I appreciate it, hope it doesn't bother you.

Thanks :)

I added the option setHorizontalFrameRatio. So this is fixed with 1.3.0/1.3.1.