Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we customize the scanning frame #69

Open
harishmedamoni opened this issue Nov 5, 2019 · 1 comment
Open

Can we customize the scanning frame #69

harishmedamoni opened this issue Nov 5, 2019 · 1 comment

Comments

@harishmedamoni
Copy link

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

@matvidako
Copy link
Contributor

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.

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

No branches or pull requests

2 participants