Java源码示例:me.dm7.barcodescanner.core.ViewFinderView
示例1@Override
protected IViewFinder createViewFinderView(Context context) {
if (mDrawLaser) {
Log.w("camera", "drawLaser set to true");
mViewFinderView = new ViewFinderView(context);
}
else {
Log.w("camera", "drawLaser set to false");
mViewFinderView = new CustomViewFinderView(context);
}
return mViewFinderView;
}
protected IViewFinder createViewFinderView(Context context) {
return new ViewFinderView(context);
}