private void ListItemClicked(int position) { Android.Support.V4.App.Fragment fragment = null; switch (position) { case 0: fragment = new CalanderFragment(); if (mTitle != null) { mTitle.Text = "March 2018"; } break; case 1: fragment = new ReservationFragment(); mTitle.Text = "Reservations"; break; case 2: logoutuser(); break; } if (fragment != null) { SupportFragmentManager.BeginTransaction() .Replace(Resource.Id.content_frame, fragment) .Commit(); } }
public void moveToCalander() { Android.Support.V4.App.Fragment fragment = new CalanderFragment(); if (fragment != null) { SupportFragmentManager.BeginTransaction() .Replace(Resource.Id.content_frame, fragment) .Commit(); } }
private void initCalanderView() { Android.Support.V4.App.Fragment fragment = new CalanderFragment(); if (fragment != null) { SupportFragmentManager.BeginTransaction() .Replace(Resource.Id.content_frame, fragment) .Commit(); } var toolbarTop = (Android.Support.V7.Widget.Toolbar)FindViewById(Resource.Id.toolbar); mTitle = (TextView)toolbarTop.FindViewById(Resource.Id.toolbar_title); mTitle.Text = "March 2018"; }