No resource identifier found for attribute 'pstsIndicatorColor' in package

来源:互联网 发布:kktv 连接网络 编辑:程序博客网 时间:2024/05/10 03:17

今天在用一个UI开源框架PagerSlidingTabStrip的时候,当我在xml设置相关属性后报了以下错误:

No resource identifier found for attribute 'pstsIndicatorColor' in package xxx

我检查了下xml已经有添加包名的命名空间,可为什么还是会报错?后来网上查了相关资料。终于解决了。

解决方法:

在给布局文件添加命名空间后面的包名应该是AndroidManifest.xml文件中定义的package包名,而不是我使用的这个自定义控件所处的包的包名。

0 0