Coder Social home page Coder Social logo

Comments (6)

eluleci avatar eluleci commented on July 18, 2024

There shouldn't be any problem with maven. I guess the reason of your problem is not adding the namespace line to your layout. You should add this line to be able to use "flatui" name space.

xmlns:flatui="http://schemas.android.com/apk/res-auto"

If you open the sample application's layout file you'll see there is this line.
https://github.com/eluleci/FlatUI/blob/master/sample/src/main/res/layout/activity_main.xml

Also there is another thing. The reason of using Gradle is that assets files are also available in the library. (like fonts in assets folder) While using Maven you'll not be able to get these fonts. So the thing you have to do is copying these font files and putting into your project's assets folder. (If you want to use one of these fonts)

from flatui.

rodoufu avatar rodoufu commented on July 18, 2024

Thank you eluleci, I'll try it.
I corrected this issue to show my code correctly and highlight it so now it's possible to see it right.

In this case a used:

<LinearLayout xmlns:flatui="http://schemas.android.com/apk/res/android">

Instead of:

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

I think that I used it in one of my tries but I'm not so sure and I'll try.
I hope to solve the problem.

from flatui.

eluleci avatar eluleci commented on July 18, 2024

Could you make it work? I'll close the issue if you could solve it.

from flatui.

beydogan avatar beydogan commented on July 18, 2024

@rodoufu could you make it work? I couldnt make it work with Maven.

from flatui.

eluleci avatar eluleci commented on July 18, 2024

Yes right. You need to have the android namespace too (I didn't realise that you just used flatui namespace). I hope it works as I said. But also you'll have problems with the resource files. So don't forget to copy them too.

from flatui.

rodoufu avatar rodoufu commented on July 18, 2024

@beydogan unfortunately I coudn't.
I was always getting the same problems, and for now I have no time to keep trying.
Sorry I had take so long to answer.

from flatui.

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.