Would love some feedback on this MVVM/Databinding ...
# android-databinding
m
Would love some feedback on this MVVM/Databinding base class for Fragments/Activities, let me know if anything could be improved https://link.medium.com/vaiuq6mej5
e
One thing I would say is that if the
binding
in not set to
null
in
onDestroyView()
it will leak the
Views
it holds.
m
another, maybe confusing things is that you access
myTextView
directly, which seems like kotlin synthetics use, something you don’t need since you use databinding.
👍 1