Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onCreate(@Nullable Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- this.mBinding = DataBindingUtil.setContentView(
- this,
- R.layout.activity_baking);
- // the activity_baking.xml view is empty except for a frame-layout that is responsible for
- // being populated with the recycler view list of recipes.
- RecipesFragment recipesFragment = new RecipesFragment();
- FragmentManager fragmentManager = getSupportFragmentManager();
- fragmentManager.beginTransaction().add(R.id.fl_recipes, recipesFragment).commit();
- // now need to provide some logic to actually get the recipes.
- NetworkUtils.getRecipesFromNetwork(recipesFragment);
- }
Add Comment
Please, Sign In to add comment