Comments (6)
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.
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.
Could you make it work? I'll close the issue if you could solve it.
from flatui.
@rodoufu could you make it work? I couldnt make it work with Maven.
from flatui.
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.
@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)
- Support New Components HOT 4
- Flat Ui in Android using Android Studio HOT 3
- Documentation - Samples HOT 5
- How to use in Eclipse HOT 3
- The following classes could not be instantiated: HOT 4
- Can we changing color? HOT 1
- Error:Gradle version 1.10 is required. Current version is 2.1 HOT 1
- Runtime exception when using FlatUI on Android 4.0.4 HOT 1
- how to use in android studio HOT 1
- RENDERING EXCEPTION - "#HEX" in attribute "fl_theme" is not a valid format. HOT 1
- Integration with Listview
- Support for CheckedTextView
- StateListDrawable inflate exception for FlatSeekbar
- Incorrect colors in deep theme
- How to change the background color for FlatEditText HOT 1
- Cant resove method getActionBarDrawable(int,boolean) HOT 1
- Attribute Errors Occured, unable to find attribute.
- edit text seterror is overlapping textbox
- flatui:fl_theme issue
- Is this project active? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatui.