GithubHelp home page GithubHelp logo

Comments (10)

ApmeM avatar ApmeM commented on August 20, 2024

I do not understand the problem.
Where is it defined?
Where this error appears?
How should I create prefixes? In xml prefixes created like namespace with xmlns.
The title says nothing....

from android-flowlayout.

renaudcerrato avatar renaudcerrato commented on August 20, 2024

You defined an "orientation" attribute in attrs.xml for your FlowLayout, BUT since custom attributes must be unique, if I include the gridlayout v7 support library for example (com.android.support:gridlayout-v7), the compilation will simply fails because that custom attributes already exists in that library.

You should prefix your custom attributes to avoid collisions, or use those already defined by the system (like "android:orientation"):

<declare-styleable name="FlowLayout">
    (...) 
    <attr name="android:orientation"/>
</declare-styleable>

from android-flowlayout.

ApmeM avatar ApmeM commented on August 20, 2024

Hi,

aha, thank you. I think I'll use android:orientation then.

I did not know about it.

Thanks.

from android-flowlayout.

ApmeM avatar ApmeM commented on August 20, 2024

Hi,

I have updated code to use android:orientation
Can you check now if it is ok.

Thanks.

from android-flowlayout.

kruil avatar kruil commented on August 20, 2024

Hi,
I have got a same error today: "Attribute "orientation" has already been defined" , use a com.android.support:gridlayout-v7 lib also. Looking for solving...
ps. I am new to Android, so I could be wrong.

from android-flowlayout.

ApmeM avatar ApmeM commented on August 20, 2024

Can you try latest commit from this repository?
It was fixed and moved to android:orientation, so I think this error cant appear any more.
What commit are you using?

from android-flowlayout.

kruil avatar kruil commented on August 20, 2024

I do't know, I was using Gradle in the way you have described. I will try it later. Thank you.

from android-flowlayout.

renaudcerrato avatar renaudcerrato commented on August 20, 2024

Just download the latest source to get the fix.
Le 24 déc. 2014 19:33, "kruil" [email protected] a écrit :

I do't know, I was using Gradle in the way you have described. I will try
it later. Thank you.

Reply to this email directly or view it on GitHub
#29 (comment)
.

from android-flowlayout.

ApmeM avatar ApmeM commented on August 20, 2024

I will update version in maven central repository next week (will not have time this week to develop, sorry).

from android-flowlayout.

KingDHJ avatar KingDHJ commented on August 20, 2024

you can clear your application

from android-flowlayout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.