How to have a slide animation between two view/activity ?

Hello, I'm beggining with xamarin and android, and I'm not sure to understand the good way to do.
Then I created a main activity and a second activity with their respective layouts. In the first I put a button with that code:
button.Click += (sender, e) =>
{
var intent = new Android.Content.Intent(this, typeof(Activity1));
StartActivity(intent);
OverridePendingTransition(Android.Resource.Animation.SlideInleft, Android.Resource.Animation.SlideInleft);
};

And in the second:
button.Click += (sender, e) =>
{
Finish();
};

But this doesn't do what I want, I would like the two layouts two slide as if there were side by side, but here the second layout jut slide on the first. Also it comes from the left were I would like it to come from the right and there's no SlideInright.
Also is it the right way to do using two activities, mustn't I have only one activity and to layouts (views?).

Thanks in advance.

Sign In or Register to comment.