예제 #1
0
        public static DialogDay NewInstance(Bundle bundle)
        {
            DialogDay fragment = new DialogDay();

            fragment.Arguments = bundle;
            return(fragment);
        }
예제 #2
0
        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");
        }