Bug 42326 - Setting ActvityIndicator.Color Does Not Work Below Lollipop
Summary: Setting ActvityIndicator.Color Does Not Work Below Lollipop
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-07-01 17:56 UTC by Jimmy [MSFT]
Modified: 2016-08-12 15:03 UTC (History)
4 users (show)

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

repro solution (46.15 KB, application/zip)
2016-07-01 17:56 UTC, Jimmy [MSFT]
repro solution (46.92 KB, application/zip)
2016-07-01 17:59 UTC, Jimmy [MSFT]

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:

Description Jimmy [MSFT] 2016-07-01 17:56:26 UTC
Created attachment 16551 [details]
repro solution

### Overview
On Android versions less than Lollipop, setting the Color property on an ActivityIndicator has no effect.

Looking at the Forms source, this seems to be intentional: https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.Android/Renderers/ActivityIndicatorRenderer.cs#L43

However, Control.IndeterminateDrawable.SetColorFilter() seems to still work in older versions of Android. Current workaround is to use a custom renderer.

### Steps to Reproduce
1. Run the attached Android project

### Expected Results
The ActivityIndicator should be red.

### Actual Results
The ActivityIndicator is not red.

### Testing Version
Tested on Forms
Comment 1 Jimmy [MSFT] 2016-07-01 17:59:26 UTC
Created attachment 16552 [details]
repro solution

Fixed repro project
Comment 2 Samantha Houts [MSFT] 2016-07-19 01:33:59 UTC
Should be fixed in 2.3.2-pre1. Thanks!
Comment 3 Parmendra Kumar 2016-08-12 15:03:32 UTC
I have checked this issue with Xamarin.Forms 2.3.2-pre1 and Its working fine.

Hence closing this issue.