Calligraphy: unexpected namespace prefix "app" found for tag TextView
IDE: Android Studio 0.8.2
Whenever I use the app:fontPath in a layout in Android Studio, I get a warning “unexpected namespace prefix “app” found for tag TextView.” I’m adding xmlns:app="http://schemas.android.com/apk/res-auto" in my root layout. I have to add tools:ignore=“MissingPrefix” to the view to remove the warning.

I have the following in my values/attr.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <attr name="fontPath" />
</resources>
Edit: To be clear, this does not break anything. It’s just a slight irritant 😀
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 2
- Comments: 18 (9 by maintainers)
I think changing TextView to android.support.v7.widget.AppCompatTextView could fix the issue. Can anyone confirm this?
I’ve always had to add this line under the xmnls:android line, xmlns:tools=" http://schemas.android.com/tools" and then add tools:ignore=“missingPrefix” underneath that. On Jul 17, 2014 6:45 AM, “Gabriel Ittner” notifications@github.com wrote: