View must have a tag error in android data binding

前端 未结 7 2251
清酒与你
清酒与你 2021-02-13 05:54

I\'ve two layouts for a screen. Activity works fine while setting a layout for Mobile device but it\'s causing error while setting layout for tablet device. The main issue is:

相关标签:
7条回答
  • 2021-02-13 06:31

    i was facing similar error so my work around was

    DataBindingUtil.bind(holder.itemView)?.apply { item = items[position] }

    0 讨论(0)
提交回复
热议问题