Android动画查看Transistion上的动画

Android动画查看Transistion上的动画,android,xamarin,xamarin.android,android-animation,Android,Xamarin,Xamarin.android,Android Animation,我正在使用Xamarin开发一个应用程序。我试图实现活动之间的过渡动画,以便退出动画包括另一个动画,其中相对布局向下移动,活动向右退出,然后从左进入 我试过用零碎的活动,也试过活动。但我不能满足我的需要。以下是我尝试过的东西 protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.login);

我正在使用Xamarin开发一个应用程序。我试图实现活动之间的过渡动画,以便退出动画包括另一个动画,其中相对布局向下移动,活动向右退出,然后从左进入

我试过用零碎的活动,也试过活动。但我不能满足我的需要。以下是我尝试过的东西

protected override void OnCreate (Bundle bundle)
    {
        base.OnCreate (bundle);
        SetContentView (Resource.Layout.login);
        Button button = FindViewById<Button> (Resource.Id.loginLoginButton);

        RelativeLayout relativeLayout = FindViewById<RelativeLayout> (Resource.Id.loginFooterLayout);


        button.Click += async (sender, eventargs) => {

            Animation shake = AnimationUtils.LoadAnimation(this, Resource.Animation.outToBottom);
            relativeLayout.StartAnimation(shake);
            shake.FillAfter=true;
            shake.FillEnabled=true;

            shake.AnimationEnd+=delegate {
                StartActivity(typeof(editProfileActivity));
                OverridePendingTransition(Resource.Animation.inFromRight,Resource.Animation.outToLeft);
            };


        };
    }
protectedoverride void OnCreate(捆绑包)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.login);
Button Button=FindViewById(Resource.Id.loginLoginButton);
RelativeLayout RelativeLayout=FindViewById(Resource.Id.loginFooterLayout);
按钮。单击+=async(发送方、事件参数)=>{
Animation shake=AnimationUtils.LoadAnimation(这是Resource.Animation.outToBottom);
相对启动(震动);
shake.FillAfter=true;
shake.FillEnabled=true;
shake.AnimationEnd+=委托{
StartActivity(类型(编辑档案活动));
重写PendingTransition(Resource.Animation.INFOROMRIGHT、Resource.Animation.outToLeft);
};
};
}
上面的代码执行的方式是,首先相对布局向下移动,当动画结束时,转换发生。但我希望这些事情马上发生

任何形式的帮助都将受到感谢