Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ExampleFragment extends Fragment {
- private FragmentExampleBinding mFragmentExampleBinding;
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
- //initializing data binding object
- mFragmentExampleBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_example, container, false);
- // is there any posibility that mFragmentExampleBinding can be null
- View view = mFragmentExampleBinding.getRoot();
- return view;
- }
- }
Add Comment
Please, Sign In to add comment