Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

No resource identifier found for attribute 'blockButtonEffectHeight' #13

Open
JasonAndujar opened this issue May 23, 2014 · 9 comments
Open

Comments

@JasonAndujar
Copy link

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.

@eluleci
Copy link
Owner

eluleci commented May 29, 2014

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.

@JasonAndujar
Copy link
Author

compile 'com.github.eluleci:flatui:2.0.0'

Yes, that is the line inputted into my Build.Gradle

@eluleci
Copy link
Owner

eluleci commented May 30, 2014

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.

@JasonAndujar
Copy link
Author

I know I had 2 namespaces, so I'll have to reimplement the design and test again when I can. Thanks for the help

@Feemix
Copy link

Feemix commented Aug 4, 2014

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" />

@eluleci
Copy link
Owner

eluleci commented Aug 4, 2014

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"

@JasonAndujar
Copy link
Author

@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!

@ethanmad
Copy link

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.

@ganeshjogam-skycore
Copy link

How to resolve namespace issue from different library module like
xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants