情况: MyView extends View 之后构造函数使用inflate导入子view 然后使用findViewById=null 解决: 项目clean。 奇怪的问题!! 转载于:https://www.cnblogs.com/pandans/p/4576733.html