https://kotlinlang.org logo
#android
Title
# android
v

voben

02/18/2020, 8:33 PM
When using the new viewbinding, how can I create a ViewBinding for the root view similar to how databinding does it below?
Copy code
val viewDataBinding: T = DataBindingUtil.bind(itemView)
j

jw

02/18/2020, 8:34 PM
You can call
TheBinding.bind(itemView)
2 Views