UserDialogs user interface in MVVMCross

I am using UserDialogs in my project MVVMCross. The following code has been tested and works fine, I was able to see the "Download Dialog". The problem that I have is, how can I change the color of the circular load to fit my theme?

private async Testing ()
{
   using (Mvx.Resolve<IUserDialogs>().Loading("Loading..."))
   {
     await PutTaskDelay();
   }
}

async Task PutTaskDelay()
{
     await Task.Delay(2000);
}
+4
source share
2 answers

In your native code (iOS / Android) you should

+1

AppCompat styles.xml:

<style name="Base.Theme.App" parent="Theme.AppCompat.DayNight.NoActionBar">
    ...
    <item name="dialogTheme">@style/Base.Theme.Dialog.App</item>
    <item name="alertDialogTheme">@style/Base.Theme.AlertDialog.App</item>
</style>

<style name="Base.Theme.Dialog.App" parent="Theme.AppCompat.DayNight.Dialog">
  <item name="colorAccent">@color/accent</item>
</style>

<style name="Base.Theme.AlertDialog.App" parent="Theme.AppCompat.DayNight.Dialog.Alert">
  <item name="colorAccent">@color/accent</item>
</style>

ACR.UserDialogs // . . : AlertDialog appCompat 22.1

+1

All Articles