Bug 21484 - ActivityIndicator Color property only works on iOS
Summary: ActivityIndicator Color property only works on iOS
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-07-21 13:00 UTC by Jon Douglas [MSFT]
Modified: 2015-06-16 04:17 UTC (History)
4 users (show)

Tags: AC
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Jon Douglas [MSFT] 2014-07-21 13:00:55 UTC
The color property of an ActivityIndicator seems to only function on an iOS application. Tested on Android/Windows and it seems to only be the default ActivityIndicators being used.

You can reproduce with the following page:

    class ActivityIndicatorDemoPage : ContentPage
    {
        public ActivityIndicatorDemoPage()
        {
            Label header = new Label
            {
                Text = "ActivityIndicator",
                Font = Font.BoldSystemFontOfSize(40),
                HorizontalOptions = LayoutOptions.Center
            };

            ActivityIndicator activityIndicator = new ActivityIndicator
            {
                Color = Device.OnPlatform(Color.Red, Color.Red, Color.Red),
                IsRunning = true,
                VerticalOptions = LayoutOptions.CenterAndExpand
            };

            // Accomodate iPhone status bar.
            this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5);

            // Build the page.
            this.Content = new StackLayout
            {
                Children = 
                {
                    header,
                    activityIndicator
                }
            };
        }
    }
Comment 1 Parmendra Kumar 2014-08-08 06:53:57 UTC
I have tried to reproduce this issue and reproduce it with given above code.
I observed that the color property of an ActivityIndicator seems to only on an iOS
application
I observed that the Android/Windows seems to only be the default
ActivityIndicators being used.

Zip Xamarin Logs: https://gist.github.com/Parmendrak/76d1945416e42005741a

Environment Info:
Microsoft Visual Studio Professional 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0444002-02771
Microsoft LightSwitch for Visual Studio 2013

Xamarin   3.3.47.0 (0b2a123923812a88ed3091909478dbe9e0111f00)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android
Comment 2 Jason Smith [MSFT] 2015-06-16 04:17:40 UTC
Should be fixed in 1.4.3-pre3