-
Notifications
You must be signed in to change notification settings - Fork 134
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
Colors in attrs.xml too #5
Comments
Great question, I've struggling it for a few hours how to do it right, even ask on SO. I can't just pass the color as an attribute to the view because this color is showing up in a couple of places, for example- the "login" color is in the view background, in the text style and in the login button background drawable, so I preferred putting it all in the xml's and not in code (and there are some things that I can event not set up in code, like the hint text style) |
Ok, all right 👆 |
So the user will be able to inheritance from those styles? If so- we'll need to create also |
I'm very confused why the colors are handled over the colors.xml file instead like the texts via the attributes file?
We can set it up like this too:
and use it like
Any opinion not to do this?
The text was updated successfully, but these errors were encountered: