@Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container,
                                 Bundle savedInstanceState) {
            View rootView = inflater.inflate(R.layout.fragment_tabbed_scanning, container, false);
            barcodeView = rootView.findViewById(R.id.barcode_view);
            return rootView;
        }
Returns a new instance of this fragment for the given section
number.
sample/src/main/java/example/zxing/TabbedScanning.java