On Jul 19, 2012, at 5:37 AM, Martyn Wendon wrote:
> Just upgraded to the latest stable and found that previous working color
> setting seems to be broken:
What version were you using previously? Something before 4.2.0? 4.2.0 changed
many methods which took a "color" and replaced `int` with `Color`:
http://docs.xamarin.com/android/Releases/Mono_For_Android_4/Mono_for_Android_4.2#Breaking_Changes
http://docs.xamarin.com/Android_Api_Changes/Release_4.2.0/Level_4_Diff/MonoAndroid.dll#Type_Changed.3a_Android.App.Activity
...
> int colour = Color.Argb(200, 50, 100, 150);
> SomeLayout.SetBackgroundColor(colour);
> SomeTextView.SetTextColor(colour);
As of 4.2.0, this needs to be:
Color colour = new Color (200, 50, 100, 150);
SomeLayout.SetBackgroundColor (colour);
SomeTextView.SetTextColor (colour);
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid