I'm using a FragmentTransaction to replace a fragment in a container like this:
activity.getSupportFragmentManager().beginTransaction().setCustomAnimations(R.anim.abc_fade_in, R.anim.abc_fade_out).replace(R.id.container, fragmentToShow).addToBackStack(null).commit();
The problem is that a PreferenceFragment can not be converted to support v4 fragment. How can I use a PreferenceFragment like that?
 
    