Skip to content
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

Change default value of some colors from -1 to Integer.MAX_VALUE #300

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FlyingPumba
Copy link

@FlyingPumba FlyingPumba commented Jul 14, 2016

cc: @rengwuxian
Since White (0xFFFFFFFF) is in fact -1, using the default value as -1 prevents the user from setting color White for:

  • helperTextColor
  • floatingLabelTextColor
  • underlineColor

More info: http://stackoverflow.com/questions/30430047/typedarray-getcolor-always-returning-1-in-custom-view

Also, use proper @ColorInt annotation.

Since White (0xFFFFFFFF) is in fact -1, using the default value as -1
prevents the user from setting color White for:
- helperTextColor
- floatingLabelTextColor
- underlineColor
More info: http://stackoverflow.com/questions/30430047/typedarray-getcolor-always-returning-1-in-custom-view
This denotes that the marked ints are colors, and not resources for example.
@FlyingPumba
Copy link
Author

Fixes #192

@FlyingPumba
Copy link
Author

And probably fixes #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant