I just realized that with the latest fragment-ktx ...
# android
k
I just realized that with the latest fragment-ktx updates, we can now have code like this
class MyFragment : Fragment(R.layout.my_fragment_layout)
. But how to initialized our binding (DataBinding) if we use this constructor approach?
z
by not using this new constructor and returning
binding.root
just like before
k
aah i see. 😄 thank you @zhuinden