Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
該錯誤 大多出現在自定義控件的初始化時
當自定義控件只有 Context 一個屬性時
只需這樣處理就可以解決問題了
Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]
該錯誤 大多出現在自定義控件的初始化時
當自定義控件只有 Context 一個屬性時
只需這樣處理就可以解決問題了