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

Attribute "title" has already been defined #34

Closed
ghost opened this issue Aug 7, 2011 · 2 comments
Closed

Attribute "title" has already been defined #34

ghost opened this issue Aug 7, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 7, 2011

Hi,

I'm using android-actionbar as a library as well as GreenDroid(https://github.com/cyrilmottier/GreenDroid).

After adding both of them as libraries, Eclipse warns that .../android-actionbar/actionbar/res/values/attrs.xml:19: error: Attribute "title" has already been defined

How could I fix it?

@johannilsson
Copy link
Owner

Hi it looks like both greendroid and this action bar is declaring a declare-styleable with the name ActionBar a title attribute. When one or more library projects is added to a project they will all be merged together. To fix this problem you need to alter one of the projects and rename this attribute or stylable element and the corresponding code.

For the android action bar this means changing the name in attrs.xml and then do the corresponding change in ActionBar around line 70. The same could be done with green droid.

@mahaveer
Copy link

hello johannilson i am new in android anvoirnment and i am facing some problems while using your action bar library actually its too good library but i want to make it custom..
i want to add buttons instead of title of the action bar. can i remove title field from action bar and can i manage spacing (reduce space between two buttons ) in action bar???

i am hoping a good solution from you.
actually i am new on android so if you provide me solution in details i will be very grateful of you..

Thanks
Mahaveer Muttha.

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

No branches or pull requests

2 participants