我自定义控件时发生的一个问题:Binary XML file line #10
看api:
View(Context context) //Simple constructor to use when creating a view from code
View(Context context, AttributeSet attrs) //Constructor that is called when inflating a view from XML
View(Context context, AttributeSet attrs, int defStyle) //Perform inflation from XML and apply a class-specific base style
api文档上说必须要实现派生的三个方法,而我只实现了第一个,补全后面两个就OK了。
以上记录