leosan
11/28/2018, 11:12 PMLayoutContainer
here in order get cached synthetic views? I Can't find a way to work 😕
LayoutContainer requires the containerView
initialized at the class initialization but there's no way I can get it on the delegate initialization, only on the bindView
class HeadlineDelegateAdapter @Inject constructor() : BaseDelegateAdapter {
override fun getLayoutRes(): Int = R.layout.item_dashboard_transaction_headline
override fun bindView(itemView: View, item: BaseViewType, viewHolder: RecyclerView.ViewHolder) {
if (item is Headline) {
tvHeadline.text = item.description
tvSubtotal.text = item.subtotal
}
}
}
kenkyee
11/29/2018, 12:07 PMleosan
11/29/2018, 12:11 PMkenkyee
11/29/2018, 2:00 PM