use of me.dm7.barcodescanner.core.IViewFinder 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);
}
Aggregations