I am trying to set up my FragmentTransaction transitions and I came across the setTransitionStyle method. It accepts the xml resource id for the style, but I have no idea what the xml resource will look like. I know that you can define animation styles for actions, and I believe that the xml needed for this method is similar, but I cannot find the documentation in the required format (for example, the xml attributes / nodes needed to do this work).
EDIT1 (this is what I am doing now in my FragmentActivity):
public void pushFolderFrag(Fragment folderFrag, String backStackID) { FragmentTransaction transaction = getFragmentManager().beginTransaction(); transaction.replace(R.id.SplitView_MasterContainer, folderFrag); transaction.addToBackStack(backStackID); transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE);
Ryanm source share