johannilsson / android-actionbar

DEPRECATED Android Action Bar Implementation
1.31k stars 564 forks source link

Attribute "title" has already been defined #34

Closed ghost closed 13 years ago

ghost commented 13 years ago

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 commented 13 years ago

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 commented 12 years ago

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.