Exemplo n.º 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();
        }
Exemplo n.º 3
0
        internal static bool ShowLoading(Context context, string message)
        {
            ((Activity)context).RunOnUiThread(() =>
            {
                _progressDialog = new ProgressDialogFragment();
                _progressDialog.Initialize(context, message, string.Empty);
                _progressDialog.Show();
            });

            return(true);
        }
Exemplo n.º 4
0
 public void StartProgress()
 {
     mProgressFragment.Show(mFragmentManager, "progress");
 }