Open JasonAndujar opened 10 years ago
I checked this but I didn't have any error. Are you sure that you are using the 2.0.0 version of the library? Because this attribute is added @ 2.0.0.
compile 'com.github.eluleci:flatui:2.0.0'
Yes, that is the line inputted into my Build.Gradle
There can be another cause. If you use multiple namespace like xmlns:flatui="http://schemas.android.com/apk/res-auto" xmlns:another="http://schemas.android.com/apk/res-auto" you should use just one of them and use name space "another" instead of "flatui" or the other way.
Otherwise I cannot think about anything that can cause this. Finally, try to remove the dependency, add again, clean the project and re-build. This may solve.
I know I had 2 namespaces, so I'll have to reimplement the design and test again when I can. Thanks for the help
i had the same issue adding xmlns:another="http://schemas.android.com/apk/res-auto" helped but i get another error now it says "error:Error parsing XML:unbound prefix" in the second line of code
com.cengalabs.flatui.views.FlatTextView
android:id="@+id/title_edittexts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:layout_marginLeft="5dip"
android:maxLines="1"
android:gravity="center_vertical"
android:text="Edit Texts"
android:textSize="20dip"
flatui:textColor="main"
flatui:theme="@array/grass" />
The reason you have this problem is that you didn't define 'flatui' prefix. If you use different attributes from different libraries use something like xmlns:app="http://schemas.android.com/apk/res-auto" only.
Then use attributes from all of the libraries with same prefix like: //Flat edit text android:id="@+id/title" app:fl_textColor="main"
//Some other widget from another library app:someAttributeFromAnotherLibrary="value"
@eluleci actually I did define flatui. I still have to clue why it didnt work for this one project, but I just started another project and it works great!
I'm having the same issues. I have three namespaces: android, tools, and flatui. They each point to a different URL. Everything worked fine on my laptop, but then I pulled the project from git on my desktop and I'm getting these strange issues.
Edit: strangely enough, I downgraded my FlatUI version to 2.0.2 and it works on my desktop. Weird, but I'm not complaining.
How to resolve namespace issue from different library module like xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
Hey guys I'm using Android Studio and I'm encountering a weird error, I have added this line to the XML layout: xmlns:flatui="http://schemas.android.com/apk/res-auto"
but to no avail. I'm using this attribute on a FlatButton, and nothing else has given me this issue either.