I want to create a barcode scanner activity, I found this nice tutorial: http://www.devexchanges.info/2016/10/reading-barcodeqr-code-using-mobile.html
How can I decorate the preview image with detected area (with dots or rectangle).
I want to create a barcode scanner activity, I found this nice tutorial: http://www.devexchanges.info/2016/10/reading-barcodeqr-code-using-mobile.html
How can I decorate the preview image with detected area (with dots or rectangle).
Copyright © 2021 Jogjafile Inc.
Put another transparent view on top of your
SurfaceViewand draw on that. B oth views will loosely coupled, so there is some math involved in getting it right to match the decoration with the camera output.So in your
activity_main.xml:And then, create a custom view:
If it is just static visuals you want to show, use an
ImageViewinstead of a custom view and create the drawable you want.