https://kotlinlang.org logo
Title
p

Paul Woitaschek

12/17/2018, 8:54 AM
You can just write it as
class IcebergViewHolder(override val containerView: View) : RecyclerView.ViewHolder(containerView), LayoutContainer
@Jorge R
🤯 3
🤔 1
j

Jorge R

12/17/2018, 9:18 AM
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

Paul Woitaschek

12/17/2018, 9:23 AM
Yes
You can adapot that logic to any class you need
j

Jorge R

12/17/2018, 11:18 AM
That yes was that you need to bind directly to the field right?
😄