blinkid-ui-android icon indicating copy to clipboard operation
blinkid-ui-android copied to clipboard

Can we customize the scanning frame

Open harishmedamoni opened this issue 5 years ago • 1 comments

Hi,

I would like to customize the scanning frame as attached image. Can you please let me know how can we achieve this. I tried adjusting the below hook lengths in dimens.xml but no luck.

<dimen name="mb_hook_length_vertical">16dp</dimen>
<dimen name="mb_hook_length_horizontal">24dp</dimen>
<dimen name="mb_hook_stroke_width">5dp</dimen>

Can we give a background image to the scanning area?

Please help.

Thanks, Harish bg

harishmedamoni avatar Nov 05 '19 08:11 harishmedamoni

Hi,

what you did should work for hooks, check that these dimensions are in default dimens file, maybe they ended up in landscape or in version specific dimens?

You can also change hook color through theme attribute.

Here's an updated sample app with custom hooks: https://github.com/BlinkID/blinkid-ui-android/tree/custom_hooks

Unfortunately, we don't have a way to set background image for the scanning area.

matvidako avatar Nov 05 '19 09:11 matvidako