How to avoid flicker on Acr.UserDialogs Loading Dialog while changing the Title text in Android?

The following snippet is in the PCL. On running this, a new loader is created each time a new value is set to the Loader Dialog title with a flicker in case of Android. I am looking for a way where I can avoid the flicker like how it works in iOS.

var dlg = UserDialogs.Instance.Loading("Initiating upload..");
dlg.Show();
await Task.Delay(2000);
for (int i = 0; i < 5; i++)
{
    // This line causes the overlay to flicker in Android. iOS works perfect.
    dlg.Title = "Uploading \n" + (i + 1) + " of 5";
    await Task.Delay(2000);
}
dlg.Hide();

The same snippet works perfectly when run through an iOS app. Any help is deeply appreciated.

@AllanRitchie: any pointers would be very helpful.

Answers

Sign In or Register to comment.