microsoftarchive / android-sliding-layer-lib

Highly customizable SlidingLayer as you have seen in Wunderlist
http://wunderlist.com
Apache License 2.0
932 stars 279 forks source link

Attribute already defined #76

Open Paroca72 opened 9 years ago

Paroca72 commented 9 years ago

Hello,

im tring to use your library but i have always this error: Error:(1) Attribute "shadowDrawable" has already been defined

I use play services: 7.3.0 and it say that attribute is inside wallet_colors.xml

Im just add compile 'com.wunderlist:sliding-layer:1.1.1'

Thanks Sam

y2kshane commented 9 years ago

+1

JlUgia commented 9 years ago

Hi @Paroca72 and @y2kshane. I have just tried adding the wallet module with 7.3 version and things seem to work ok. How are you accessing the property to set the shadow? Note that if you are setting it in your xml layout you can add a specific namespace for custom components or even the sliding layer itself by defining it at the beginning of the layout. For example:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
             xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
             ...>

    ...

    <com.wunderlist.slidinglayer.SlidingLayer
             ...
             slidingLayer:shadowDrawable="@color/grey"/>

</FrameLayout>

Is that the way you are doing it? Can you share more details?