出现error: No resource identifier found for attribute的问题,如果你使用了自定义的标签,可能是因为没有在res/values中加入attrs文件。
文件格式如下:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="memdata">
<attr format="integer" name="id" />
<attr format="string" name="name" />
<attr format="integer" name="classId" />
<attr format="string" name="q" />
<attr format="string" name="a" />
</declare-styleable>
</resources>