ActivityIndicator Color on PullToRefresh in ListView

ksgerberksgerber CHMember
edited July 2015 in Xamarin.Forms

I'm using PullToRefresh in my ListView. When the ItemsSource of my ListView is empty the displayed ActivityIndicator on a PullToRefresh operation is black, when the ItemsSource has items in it the color of the ActivityIndicator is white. Does Xamarin calculate the color based on the color used in the cells? Why does it work like this?

I would like to have it white at all times and i tried several things like setting the overall appearance of the UIActivityIndicator with the following lines:

UIActivityIndicatorView.Appearance.Color = UIColor.White;

Somehow that isn't working either. Any ideas on how to get the required result?

Thanks a lot.



  • Same problem here.

  • Bump. Same problem as well. Would it be possible to style it through the ListViewRenderer?

  • No way... I used this @MitchMilam WaitingPage instead.

  • Yuka__AbunoYuka__Abuno JPMember
    edited January 2018
    using System.Linq;
    using UIKit;
    using Xamarin.Forms;
    using Xamarin.Forms.Platform.iOS;
    using YourNameSpace.iOS;
    [assembly: ExportRenderer(typeof(ListView), typeof(ListViewCustomRenderer))]
    namespace YourNameSpace.iOS
        public class ListViewCustomRenderer : ListViewRenderer
            protected override void OnElementChanged(ElementChangedEventArgs<ListView> e)
                var refreshControl = Control?.Subviews?.FirstOrDefault(x => x is UIRefreshControl) as UIRefreshControl;
                if (refreshControl == null)
                refreshControl.TintColor = UIColor.White;
Sign In or Register to comment.