예제 #1
0
        void ShowProgressDialog(string status)
        {
            progressDialog = new ProgressDialogFragment(status);
            var trans = SupportFragmentManager.BeginTransaction();

            progressDialog.Cancelable = false;
            progressDialog.Show(trans, "progress");
        }
        protected override void OnPreExecute()
        {
            progressDialog = new ProgressDialogFragment(context.GetString(Resource.String.text_download_file));
            var tran = context.SupportFragmentManager.BeginTransaction();

            progressDialog.Cancelable = false;
            progressDialog.Show(tran, context.GetString(Resource.String.text_name_fragment_progress));
            base.OnPreExecute();
        }
예제 #3
0
파일: General.cs 프로젝트: waldow90/nMAC
        internal static bool ShowLoading(Context context, string message)
        {
            ((Activity)context).RunOnUiThread(() =>
            {
                _progressDialog = new ProgressDialogFragment();
                _progressDialog.Initialize(context, message, string.Empty);
                _progressDialog.Show();
            });

            return(true);
        }
예제 #4
0
 public void StartProgress()
 {
     mProgressFragment.Show(mFragmentManager, "progress");
 }