示例#1
0
        /// <summary>
        /// Display a progress dialog inside of a DialogFragment.
        /// </summary>
        private void ShowIndeterminateProgressDialog()
        {
            MyProgressDialog progressDialog = FragmentManager.FindFragmentByTag("progress_dialog") as MyProgressDialog;

            if (progressDialog == null)
            {
                var tx = FragmentManager.BeginTransaction();
                progressDialog = new MyProgressDialog();
                progressDialog.Show(tx, "progress_dialog");
            }
        }
示例#2
0
        /// <summary>
        /// Display a progress dialog inside of a DialogFragment.
        /// </summary>
        void ShowIndeterminateProgressDialog()
        {
            MyProgressDialog progressDialog = FragmentManager.FindFragmentByTag(PROGRESS_DIALOG_TAG) as MyProgressDialog;

            if (progressDialog == null)
            {
                var tx = FragmentManager.BeginTransaction();
                progressDialog = new MyProgressDialog();
                progressDialog.Show(tx, PROGRESS_DIALOG_TAG);
            }
        }
示例#3
0
        /// <summary>
        /// Display a progress dialog inside of a DialogFragment.
        /// </summary>
        private void ShowIndeterminateProgressDialog()
        {
            MyProgressDialog progressDialog = FragmentManager.FindFragmentByTag ("progress_dialog") as MyProgressDialog;

            if (progressDialog == null) {
                var tx = FragmentManager.BeginTransaction ();
                progressDialog = new MyProgressDialog ();
                progressDialog.Show (tx, "progress_dialog");
            }
        }