No resource identifier found for attribute X in package X
2015-04-13 18:30
316 查看
自定义view中错误:No resource identifier found for attribute X in package X
分类: Android xml2013-10-1311:22 6751人阅读 评论(3) 收藏 举报
Androidxml自定义view
今天在写一个自定义view时,加入了通过xml传递参数,但是xml出现了No resource identifier found for attribute X in package X,我看了下教程感觉好像基本上代码差不多,后来查了google,发现这个声明的命名空间需要和androidManifest中的package对应,即命名空间为
[html] view
plaincopy
![](https://code.csdn.net/assets/CODE_ico.png)
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tino.fingerscanning"
android:versionCode="1"
android:versionName="1.0" >
中的xmlns:android中后面的命名空间去掉android加上package中的路径,比如我的xmlns应该是
xmlns:myswitch="http://schemas.android.com/apk/res/ com.tino.fingerscanning"
相关文章推荐
- 关于android自定义View时报error: No resource identifier found for attribute ‘XXX’ in package ‘
- android自定义view[控件重用]时出现“No resource identifier found for attribute *** in package *** ”
- No resource identifier found for attribute 'paddingEnd' in Package 'android'
- 自定义view中错误:No resource identifier found for attribute X in package X
- 自定义view引起的错误:No resource identifier found for attribute *in package *
- 自定义View时报error: No resource identifier found for attribute ‘xxx’ in package ‘
- error: No resource identifier found for attribute 'dropDownHorizontalOffset' in package 'android'
- Android 自定义控件No resource identifier found for attribute X in package X 和 res与res-auto的配置
- no resource identifier found for attribute 'lable' in package 'android'
- 关于android自定义View时报error: No resource identifier found for attribute ‘XXX’ in package ‘(
- 自定义view中错误:No resource identifier found for attribute X in package X
- android自定义View时报 error: No resource identifier found for attribute ‘XXX’ in package 'XXX'
- error: No resource identifier found for attribute 'format24Hour' in package 'android'
- 错误:No resource identifier found for attribute 'hover' in package 'com.indris.sample'
- 自定义View时 自定义属性报错Error:(8) No resource identifier found for attribute 'xxx' in package 'android'
- No resource identifier found for attribute 'parentActivityName' in package 'android'
- error: No resource identifier found for attribute 'showAsAction' in package 'com.ymeng.项目名字'
- Android自定义View报 No resource identifier found for attribute ‘’ in package ""
- Android自定义View:No resource identifier found for attribute ‘XXX’ in package ‘XXX‘
- error: No resource identifier found for attribute 'cardCornerRadius' in package XXXXXX