[Android] DataBinding-ktx 5.0.0 and ViewBinding-ktx 1.0.0 Released
Published in
1 min readJul 22, 2020
What is DataBinding-ktx and ViewBinding-ktx
A library that makes it easy to use DataBinding and ViewBinding.
You can do the following
- Unify the way you declare properties in Activity and Fragment
- Set the property to null after onDestroyView in Fragment
- Automatically set the LifecycleOwner (DataBinding only)
Why split into DataBinding-ktx and ViewBinding-ktx?
There were the following issue
- DataBinding is enabled by DataBinding-ktx
- DataBinding wraps the ViewStub with ViewStubProxy
- If you only use ViewBinding, ViewStub will be wrapped by ViewStubProxy
We’ve released ViewBinding-ktx because it’s redundant for users who only use ViewBinding, and because we’re using jitpack to distribute it, we’ve split the repository.