2012年3月19日星期一

ERROR: In XXX, unable to find attribute yyy

Android 中定义declare-styleable时碰到这个错误,折腾了3个小时,才发现是<attr>这个tag只写了name,而没有写format。。。
正确的写法是
<attr name="some name" format="string" />

没有评论:

发表评论