Skip to content

Instantly share code, notes, and snippets.

@ChaosPower
Last active January 2, 2016 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChaosPower/8240519 to your computer and use it in GitHub Desktop.
Save ChaosPower/8240519 to your computer and use it in GitHub Desktop.
Replace Fragment
Bundle arguments = new Bundle();
arguments.putString(DashboardDetailFragment.ARG_ITEM_ID, id);
DashboardDetailFragment dDf = new DashboardDetailFragment();
dDf.setArguments(arguments);
getSupportFragmentManager().beginTransaction()
.setCustomAnimations(R.anim.abc_fade_in,R.anim.abc_fade_out)
.replace(R.id.item_detail_container, dDf)
.commit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment