Spinner-Progress-Bar-Xamarin-Android-C#
var progressDialog = ProgressDialog.Show(this, "Please wait...", "Checking info...", true);
new Thread(new ThreadStart(delegate
{
//Your Code
RunOnUiThread(() => Toast.MakeText(this, "Toast within progress dialog.", ToastLength.Long).Show());
//Hide Progress Dialog after completion of Task
RunOnUiThread(() => progressDialog.Hide());
})).Start();
var progressDialog = ProgressDialog.Show(this, "Please wait...", "Checking info...", true);
new Thread(new ThreadStart(delegate
{
//Your Code
RunOnUiThread(() => Toast.MakeText(this, "Toast within progress dialog.", ToastLength.Long).Show());
//Hide Progress Dialog after completion of Task
RunOnUiThread(() => progressDialog.Hide());
})).Start();
No comments:
Post a Comment