I am trying out a simple fragment code demo ,where i replacing the fragment on orientation change
CODE:
FragmentManager fragmentManager = getFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager
                .beginTransaction();
        /**
         * Check the device orientation and act accordingly
         */
        if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
            /**
             * Landscape mode of the device
             */             
            LS_Fragment ls_fragment = new LS_Fragment();
            fragmentTransaction.replace(android.R.id.content, ls_fragment);
        } else {
            /**
             * Portrait mode of the device
             */
                PM_Fragment pm_fragment = new PM_Fragment();
            fragmentTransaction.replace(android.R.id.content, pm_fragment);
        }
        fragmentTransaction.commit();
Now after searching the net i found that i have to use
fragmentTransaction.setCustomAnimations()
but i am not able to understand how to write the animations xml and give it to the .setCustomAnimations() function
 
     
     
    