private void navigateToTeamFragment() { FragmentTransaction ft = getFragmentTransaction(); ft.setCustomAnimations( R.animator.slide_up, R.animator.scale_down, R.animator.scale_up, R.animator.slide_down); ft.add( R.id.main_container, mTeamCreateFragment, mTeamCreateFragment.getClass().getSimpleName()); ft.addToBackStack(mTeamCreateFragment.getClass().getSimpleName()); ft.commit(); }
@Override public void onEditTeamSelected(Bundle args) { mTeamCreateFragment.setArguments(args); navigateToTeamFragment(); }