Search in sources :

Example 1 with IViewFinder

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);
}
Also used : Context(android.content.Context) ViewGroup(android.view.ViewGroup) ZXingScannerView(me.dm7.barcodescanner.zxing.ZXingScannerView) IViewFinder(me.dm7.barcodescanner.core.IViewFinder)

Aggregations

Context (android.content.Context)1 ViewGroup (android.view.ViewGroup)1 IViewFinder (me.dm7.barcodescanner.core.IViewFinder)1 ZXingScannerView (me.dm7.barcodescanner.zxing.ZXingScannerView)1