-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color binding changes #1225
Color binding changes #1225
Conversation
…abling color metadata fixup. Things are not as simple and stupid as you dream without working on it...
…WallpaperColor. It turned out that the criminal who generated _Color and ColorObject as internal was *metadata fixup*, not generator itself. It was buried in thousands of lines of `src/Mono.Android/metadata`. Color is absolutely a technical debt that Xamarin.Android should clean up and provide every related API in int properties and constants, but so far add a workaround by renamed Color->ColorObject class.
For internal reference: original Color design was added back in 2012 at monodroid/e47da17f |
regarding #1201 here is the results from Type Changed: Android.App.WallpaperManagerAdded methods: public virtual void AddOnColorsChangedListener (WallpaperManager.IOnColorsChangedListener, Android.OS.Handler); public virtual WallpaperColors GetWallpaperColors (int); public virtual void RemoveOnColorsChangedListener (WallpaperManager.IOnColorsChangedListener); |
@@ -1390,16 +1387,10 @@ | |||
|
|||
We will have to enable this line and bring back some sanity. | |||
--> | |||
<!-- attr path="/api/package[@name='android.graphics']/class[@name='Color']" name="managedName">AndroidColor</attr --> | |||
<attr path="/api/package[@name='android.graphics']/class[@name='Color']" name="managedName">ColorObject</attr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why ColorObject
and not AndroidColor
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am 100% sure that people try to look up "Color" something. AndroidColor will never give that impression to developers.
Context: #5749 Changes: xamarin/monodroid@5676b84...0156d4e * xamarin/monodroid@0156d4e51: Bump to xamarin/androidtools@ae1f8fbe (#1225) * xamarin/monodroid@33a26e453: Bump to xamarin/android-sdk-installer@98fa41ba (#1224)
let's see how generator is messing around by simply enabling color metadata fixup. Things are not as simple and stupid as you dream without working on it...