Q:

Fragment transitions in Android with MVVMCross

In MVVMCross is easy to develop Activity transitions, but i'm finding so many troubles trying to develop this with fragments.
I got an application with a Hamburger Menu, and I wanna be capable to edit my own transitions between fragments. I've been searching in the internet but i cant find any solution.
Thank you for your attention.

A:

If you are using MvxCachingFragmentCompatActivityas the base type for your activity you can override OnBeforeFragmentChanging method to set a custom transition animation.
public override void OnBeforeFragmentChanging(
    IMvxCachedFragmentInfo fragmentInfo, 
    Android.Support.V4.App.FragmentTransaction transaction)
{
    transaction.SetCustomAnimations(
        // Your entrance animation xml reference
        Resource.Animation.slide_in_from_right,
        // Your exit animation xml reference
        Resource.Animation.slide_out_to_left);

    base.OnBeforeFragmentChanging(fragmentInfo, transaction);
}

