protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); var toolbar = FindViewById<Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); SupportActionBar.Title = Resources.GetString(Resource.String.ApplicationName); var login = new LoginFragment(); FragmentManager.BeginTransaction() .Add(Resource.Id.frameLayout, login) .Commit(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); var toolbar = FindViewById <Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); SupportActionBar.Title = Resources.GetString(Resource.String.ApplicationName); var login = new LoginFragment(); FragmentManager.BeginTransaction() .Add(Resource.Id.frameLayout, login) .Commit(); }