Reputation: 502
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?
Upvotes: 1
Views: 1750
Reputation: 81
I did the same problem and I solved in those steps:
Upvotes: 8