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:
i was facing similar error so my work around was
DataBindingUtil.bind(holder.itemView)?.apply { item = items[position] }