Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. FragmentTransaction transaction = getFragmentManager().beginTransaction();
  2.  
  3.                         //transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
  4.                         transaction.setCustomAnimations(R.anim.slide_in_left, 0, 0, R.anim.slide_out_left);
  5.  
  6.                         transaction.add(R.id.content_frame, tagFragment, "FRAG_TAG");
  7.                         transaction.addToBackStack(null);
  8.                         // Commit the transaction
  9.                         transaction.commit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement