自定义了ShowWindow类,继承自View类,加载含有自定义View类的xml文件出错 最后看api发现构建custom view步骤如下: Subclass a View Define Custom Attributes