自定义View Caused by: android.view.InflateException

写了一个简单的自定义view 报错,根据网上的建议查了xml 文件,检查了构造方法,都正确,但是就是跑不起来,

无意中看到了 在使用自定义attr 的时候多写了一个 

obtainStyledAttributes.recycle();
 

猜你喜欢

转载自blog.csdn.net/yyo201/article/details/79948433