public static DialogDay NewInstance(Bundle bundle) { DialogDay fragment = new DialogDay(); fragment.Arguments = bundle; return(fragment); }
private void ChoseDialog() { FragmentTransaction ft = FragmentManager.BeginTransaction(); Fragment prev = FragmentManager.FindFragmentByTag("dialog"); if (prev != null) { ft.Remove(prev); } ft.AddToBackStack(null); DialogDay newFragment = DialogDay.NewInstance(null); newFragment.DialogClosed += OnDialogClosed; //Add fragment newFragment.Show(ft, "dialog"); }