使用Binding.bind 方法。
val root = View.inflate(context, R.layout.widget_core, this)
binding = WidgetCoreBinding.bind(root)
使用Binding.bind 方法。
val root = View.inflate(context, R.layout.widget_core, this)
binding = WidgetCoreBinding.bind(root)