- Can scan both barcodes and QR codes
- Uses ZXing ("zebra crossing"), an open-source, multi-format 1D/2D barcode image processing library implemented in Java
this projet is a simple implementation of zxing library for scannig qr code & barcodes. ScanButton is a custom view that was implemented to avoid duplicationg code whenerver we need to implement a scan feature. ScanButton handles both scan scenarios :
- Scan once
- Scan continuously
to use this custom view , first you need to import custom view to your layout :
<com.example.customBarcodeScanner.barcodeScanner.customView.ScanButton />
then implement the scan interface within your hosting fragment :
public class ScanFragment extends Fragment implements ScanButton.Scan
you can specify whether you want to scan continuously or only once using the isScanContinuous method provided by ScanButton.scan.