2018-06-27から1日間の記事一覧

【メモ】CustomViewが入っているlayoutをinflateしたら[Method threw ‘android.view.InflateException’ exception]が出た

CustomViewのconstructorが足りないのが原因らしいので変更した package com.github.atsumo.sample0627 class SampleCustomView constructor( context: Context, attributes: AttributeSet? = null, defStyleAttr: Int = 0 ) : LinearLayout(context, attrib…