FlatUI icon indicating copy to clipboard operation
FlatUI copied to clipboard

No resource identifier found for attribute 'blockButtonEffectHeight'

Open JasonAndujar opened this issue 10 years ago • 9 comments

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.

JasonAndujar avatar May 23 '14 21:05 JasonAndujar

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.

eluleci avatar May 29 '14 14:05 eluleci

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

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

JasonAndujar avatar May 29 '14 14:05 JasonAndujar

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.

eluleci avatar May 30 '14 07:05 eluleci

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

JasonAndujar avatar May 30 '14 12:05 JasonAndujar

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

Feemix avatar Aug 04 '14 08:08 Feemix

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 avatar Aug 04 '14 09:08 eluleci

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

JasonAndujar avatar Aug 04 '14 15:08 JasonAndujar

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.

ethanmad avatar Aug 23 '14 00:08 ethanmad

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

ganeshjogam-skycore avatar Sep 20 '18 07:09 ganeshjogam-skycore