错误的详细内容是
Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
原因是在构造view的时候缺少构造函数造成的
只要在自定义的view中重写所有的构造函数即可。
错误的详细内容是
Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
原因是在构造view的时候缺少构造函数造成的
只要在自定义的view中重写所有的构造函数即可。