You can just write it as `class IcebergViewHolder(...
# android
p
You can just write it as
class IcebergViewHolder(override val containerView: View) : RecyclerView.ViewHolder(containerView), LayoutContainer
@Jorge R
🤯 3
🤔 1
j
Im not the writer 😄
the surprising thing is the KTX import behaviour I believe
so if you use containerView, can you reference with KTX to containerView.[field] or you need to bind directly to [field]?
p
Yes
You can adapot that logic to any class you need
j
That yes was that you need to bind directly to the field right?
😄