-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Attribute "primaryColor" has already been defined error #80
Comments
Ahhh. Sorry for that. I've no idea. Maybe I should pick a odder name for this attribute? |
I also have this issue, which currently prevents me from using this library. I'd say option 2 is the way to go, simply taking the attribute from the theme. :) |
Possible way out is to search primaryColor specified, if there is none fallback to app:primaryColor |
This is a big issue and makes the library totally unusable on apps that use AppCompat. |
@rengwuxian Please don't PR, it solves issue in not the best way |
The same thing happens with Attribute "color" has already been defined. Probably because of the appcompat-v7 lib. Possible similar issue on https://github.com/neokree/MaterialTabs/issues/29 |
Apparently the attr "primaryColor" has been defined in some libraries. I tried to fork the library and change that attr to something else which resolved this issue. Please consider to change its name . BTW the library is pretty awesome. Thanks. |
Issue should be solved by picking up "primaryColor" attribute from theme definition |
👍 Still broken after 5 weeks :( |
Hi all, Sorry for the delayed reply. Some mentioned about retrieving the Or if you have better solutions, let me know please. Thanks! |
neokree/MaterialTabs#38 Has been merged, so basically it half-way resolves this issue too. There just need to be a new release on their half, see https://github.com/neokree/MaterialTabs/issues/20 For people who can't wait for either project to release a new version: |
Hi all, 2.0.3 has been released, introducing a unified prefix 'met_' You can check the latest library version now. |
Alongside with MaterialEditText I use neokree/MaterialTabs. Both libs use "primaryColor" attribute.
Attribute "primaryColor" has already been defined occurs.
Possible solutions:
The text was updated successfully, but these errors were encountered: