Skip to content Skip to sidebar Skip to footer

How To Use A Sliding Transition With Compatibility Library V4 Fragment Transactions

All I want is to be able to use FragmentTransaction.replace(...) and have fragments slide into and out of place just like activities, using the default activity animation. By defau

Solution 1:

I have somewhat gotten around the problem by placing all of my fragments into a ViewPager. I can then setCurrentItem() to scroll between fragments. It's not pretty, and it takes a fair bit of manual effort, but it runs nice and quickly.

If there are any answers that aren't as hackish as what I've done, I'll definitely accept them.

Post a Comment for "How To Use A Sliding Transition With Compatibility Library V4 Fragment Transactions"