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

Default View Mode 如何才能使用闪光灯(手电筒),场景:用于夜间扫码 #96

Open
peienliudao opened this issue Jul 21, 2023 · 3 comments

Comments

@peienliudao
Copy link

Android 系统 Default View Mode 如何才能使用闪光灯(手电筒),场景:用于夜间扫码

@peienliudao
Copy link
Author

求大佬抽空看一下

@peienliudao
Copy link
Author

如何才能使 闪光灯(手电筒)的打开/关闭 按钮一直显示在页面上?

@peura-toni
Copy link

Hi,

It is not possible to make any changes to the Default View. It is used based on the "View" model. "Customized View" is already available to make changes. In order for Flash Light to be visible all the time, it will always be visible when you use the code below by removing it from the "if" structure.

Screenshot

flushBtn.setVisibility(View.VISIBLE);

You can make the flash button always visible by changing the location of this line in the DefinedActivity.java class. I hope it was useful.

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