use of me.dm7.barcodescanner.zxing.ZXingScannerView in project barcodescanner by dm77.
the class SimpleScannerActivity method onCreate.
@Override
public void onCreate(Bundle state) {
super.onCreate(state);
setContentView(R.layout.activity_simple_scanner);
setupToolbar();
ViewGroup contentFrame = (ViewGroup) findViewById(R.id.content_frame);
mScannerView = new ZXingScannerView(this);
contentFrame.addView(mScannerView);
}
use of me.dm7.barcodescanner.zxing.ZXingScannerView in project barcodescanner by dm77.
the class CustomViewFinderScannerActivity method onCreate.
@Override
public void onCreate(Bundle state) {
super.onCreate(state);
setContentView(R.layout.activity_custom_view_finder_scanner);
setupToolbar();
ViewGroup contentFrame = (ViewGroup) findViewById(R.id.content_frame);
mScannerView = new ZXingScannerView(this) {
@Override
protected IViewFinder createViewFinderView(Context context) {
return new CustomViewFinderView(context);
}
};
contentFrame.addView(mScannerView);
}
use of me.dm7.barcodescanner.zxing.ZXingScannerView in project TumCampusApp by TCA-Team.
the class JoinRoomScanActivity method onCreate.
@Override
public void onCreate(Bundle state) {
super.onCreate(state);
// Programmatically initialize the scanner view
mScannerView = new ZXingScannerView(this);
List<BarcodeFormat> formats = ImmutableList.of(BarcodeFormat.QR_CODE);
mScannerView.setFormats(formats);
// Set the scanner inside the framelayout view as the content view
setContentView(mScannerView);
}
Aggregations