protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Title = Intent.GetStringExtra(ExtraTitle); #if __ANDROID_11__ ActionBar.SetDisplayHomeAsUpEnabled(true); #endif // Create your application here var frag = SupportFragmentManager.FindFragmentById(Android.Resource.Id.Content); if (frag == null) { int fragId = Intent.GetIntExtra(ExtraFragment, FragmentDefault); switch (fragId) { case FragmentEmptyContent: frag = new EmptyContentProgressFragment(); break; case FragmentCustomLayout: frag = new CustomLayoutProgressFragment(); break; case FragmentDefault: default: frag = new DefaultProgressFragment(); break; } } SupportFragmentManager.BeginTransaction().Add(Android.Resource.Id.Content, frag).Commit(); }