Skip to content

Instantly share code, notes, and snippets.

@swanhtet1992
Last active December 28, 2015 03:19
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 swanhtet1992/7434644 to your computer and use it in GitHub Desktop.
Save swanhtet1992/7434644 to your computer and use it in GitHub Desktop.
private final Handler mHandler = new Handler();
// should be inside onItemClick of DrawerItemClickListener
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
mFragManager.beginTransaction().replace(R.id.content_frame,mFragment).addToBackStack(null).commit();
}
}, 300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment