I am working on a QR code scanner using ZXing and was wondering if there was a way to change the color outline of the frame after a successful scan, much like the Scan App in the appstore does. Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure, it’s possible, but it takes customization/effort. The color is hard coded in
OverlayView.m. You’d need to make it not hardcoded and then tell the overlay view to redraw itself at the appropriate times.Alternatively/FWIW, what I do is “flash” the screen: I add a full screen white view and then fade it away, a bit like the flash on a camera. That doesn’t require any interaction with the lower level code and, personally, I like the effect better, at least in my context.