I would like to be able to move in Xamarin through different Activities, from the MainActivity from a button I can go to the following activity (MenuNumbers):
base.OnCreate(bundle);
SetContentView(Resource.Layout.Main);
Button button = FindViewById<Button>(Resource.Id.btnNumeros);
button.Click += delegate
{
SetContentView(Resource.Layout.MenuNum);
};
But from this activity I need to go back to a third activity that I can't get it to work for me, I do it from the btnSequential button and the new activity is called Sequential:
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.MenuNum);
Button button = FindViewById<Button>(Resource.Id.btnSecuencial);
button.Click += delegate
{
SetContentView(Resource.Layout.Secuencial);
};
What am I doing wrong?
Thank you very much