Hey guys, I’m working on learning Kotlin and I hav...
# getting-started
j
Hey guys, I’m working on learning Kotlin and I have a question; is there any way to avoid the
<ViewDataBinding>
portion of this call?
DataBindingUtil.bind<ViewDataBinding>(view).setVariable(BR.viewmodel, this)
The signature of the method in Java (from Android databinding) is
public static <T extends ViewDataBinding> T bind(View root)
I don’t care about the concrete type returned by bind, I’m just going to treat it as a
ViewDataBinding