DataBindingUtil.inflate vs View Binding Inflate

You can inflate your fragment views either with data binding or view binding. Which one should be used?

Vincent Tsen

--

If you turn on dataBinding in your build.gradle, it is likely you use the "data binding layout".

As mentioned in previous article here, when “ data binding

--

--