Bug 27657 - Android.Graphics.Drawables.GradientDrawable.SetColors(int[]) Method is missing.
Summary: Android.Graphics.Drawables.GradientDrawable.SetColors(int[]) Method is missing.
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 5.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2015-03-04 12:45 UTC by f951584
Modified: 2015-03-05 13:22 UTC (History)
4 users (show)

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:

Description f951584 2015-03-04 12:45:05 UTC
Description of Problem:

Same as summary.

Steps to reproduce the problem:

1. GradientDrawable gd = new GradientDrawable();

Actual Results:

   gd.SetColors(int[]) method is not available. 

Expected Results:

   gd.SetColors(int[]) should be available, as documented here:


   Only the gd.SetColor(int) method is available.

How often does this happen? 


Additional Information:
Comment 1 Sunil Kumar 2015-03-05 05:41:22 UTC
I have tried to reproduce this issue but not able to reproduce. I am getting both methods "Setcolor (int)" and "Setcolors(int []) under Android.Graphics.Drawables.GradientDrawable. Here is the screencast for the same: http://www.screencast.com/t/TvnHVjhihfxk

Please let me know if I have to follow any other steps to reproduce this issue.

if still you are able to reproduce this issue, please provide build info and screencast/video for the same.
For XS build info, Location: XS-> Help-> About-> Show Details-> Copy information.

Environment info:
=== Xamarin Studio ===

Version 5.9 (build 120)
Installation UUID: 01e5bc8f-b688-48d1-afba-b03c1de9590b
	Microsoft .NET 4.0.30319.34011
	GTK+ 2.24.22 (MS-Windows theme)
	GTK# 2.12.26

=== Xamarin.Android ===

Version: 5.1.0 (Trial Edition)
Android SDK: C:\Users\Naqeeb\AppData\Local\Android\android-sdk
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: C:\Program Files\Java\jdk1.7.0_71
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Not Installed

=== Build Information ===

Release ID: 509000120
Git revision: f5e41538f5c8635b6c00fb22f522c1de4f6509b0
Build date: 2015-03-03 17:55:36-05
Xamarin addins: 564d7bb0d7d0bc4440c14e7baf16db2fadb76975

=== Operating System ===

Windows 6.2.9200.0 (64-bit)
Comment 2 Jonathan Pryor 2015-03-05 10:36:47 UTC
@f951584@trbvm.com: Note the "Since" section at the bottom of the member documentation:

> Since: Added in API level 16

This member was added in API-16. Consequently, you must set your $(TargetFrameworkVersion) value to be "v4.1" or later in order to use it.