Search code examples
c#xamarinxamarin.formsxamarin.androidxamarin.ios

ACR User dialogs - Change busy indicator color?


How do I change the default color of the activity indicator - Loading Spinner in ACR user dialogs. For the Loading Instance. I tried to make changes in my "style.xml" but it is not working and there is nothing about this in the git hub repo.

Update : enter image description here


Solution

  • In your case , you just need to use the default ActivityIndicator in forms . The property Color is available

    <ActivityIndicator x:Name="dialog" >
    
      <ActivityIndicator.Color>
              <OnPlatform x:TypeArguments="Color" Android="Red"  iOS="Black"></OnPlatform>
       </ActivityIndicator.Color>
    
    </ActivityIndicator>
    

    And set the value of dialog.IsRunning to display or hide the dialog .