@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); setHasOptionsMenu(true); mViewPager.setOffscreenPageLimit(2); Bundle bundle = getArguments(); if (bundle != null) { mTeam = (Team) bundle.getSerializable(TeamMainActivity.BUNDLE_KEY_TEAM); } }
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.team_main_menu, menu); super.onCreateOptionsMenu(menu, inflater); }