写了一个简单的自定义view 报错,根据网上的建议查了xml 文件,检查了构造方法,都正确,但是就是跑不起来,
无意中看到了 在使用自定义attr 的时候多写了一个
obtainStyledAttributes.recycle();