For any Android-based View subclass, you need to supply the three constructors that call their base object constructors, ie.:
public class MyView : EditText
{
public MyView(Context context) : base(context) { }
public MyView(Context context, IAttributeSet attrs) : base(context, attrs) { }
public MyView(Context context, IAttributeSet attrs, int defStyle) : base(context, attrs, defStyle) { }
// your override code....
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…