Releases: DylanCaiCoding/ViewBindingKTX
Releases · DylanCaiCoding/ViewBindingKTX
2.1.0
viewbinding-base
- Add new class
ActivityBinding,ActivityBindingDelegate,FragmentBinding,FragmentBindingDelegate. - Easier to add ViewBinding to base classes by Kotlin delegate. ( Activity sample / Fragment sample )
—
viewbinding-base
- 添加新类
ActivityBinding、ActivityBindingDelegate、FragmentBinding、FragmentBindingDelegate。 - 使用 Kotlin 委托特性能更简单地把 ViewBinding 集成到基类。 ( Activity 示例 / Fragment 示例 )
2.0.6
2.0.5
2.0.4
OnItemClickListenersupport for SAM
2.0.3
- Optimize the usage of
SimpleListAdapter - Replace
NavigationView.updateHeaderView<VB> {...}toNavigationView.setHeaderView<VB> {...}
2.0.2
2.0.1
viewbinding-ktx
- Add
TabLayout#updateCustomTab<VB>(index) {...}
viewbinding-nonrefleciton-ktx
- Add
TabLayout#updateCustomTab(VB::bind, index) {...}
viewbinding-base
- Add the abstract class of
SimpleIntListAdapter<VB> - Add the abstract class of
SimpleLongListAdapter<VB> - Add the abstract class of
SimpleBooleanListAdapter<VB> - Add the abstract class of
SimpleFloatListAdapter<VB> - Add the abstract class of
SimpleDoubleListAdapter<VB> - Add the abstract class of
SimpleStringListAdapter<VB> - Add
simpleIntListAdapter<VB> {...} - Add
simpleLongListAdapter<VB> {...} - Add
simpleBooleanListAdapter<VB> {...} - Add
simpleFloatListAdapter<VB> {...} - Add
simpleDoubleListAdapter<VB> {...} - Add
simpleStringListAdapter<VB> {...} - Add the class of
IntDiffCallback - Add the class of
LongDiffCallback - Add the class of
BooleanDiffCallback - Add the class of
FloatDiffCallback - Add the class of
DoubleDiffCallback - Add the class of
StringDiffCallback
2.0.0
viewbinding-ktx
- Remove
TabLayout.Tab#bindCustomView<VB> {...} - Remove
View#bind<VB>() - Add
TabLayout#doOnCustomTabSelected<VB>(...) - Add
View#getBinding<VB>() - Add
ViewHoler#getBinding<VB>() - Add
ViewHoler#withBinding<VB> {...} - Add
Activity/Fragment#popupWindow<VB> {...}
viewbinding-nonrefleciton-ktx
- Remove
TabLayout.Tab#bindCustomView(VB::bind) {...} - Remove
View#bind(VB::bind) - Add
TabLayout#doOnCustomTabSelected(VB::bind, ...) - Add
View#getBinding(VB::bind) - Add
ViewHoler#getBinding(VB::bind) - Add
ViewHoler#withBinding(VB::bind) {...} - Add
Activity/Fragment#popupWindow(VB::bind) {...}
viewbinding-base
- Remove
Any#inflateBindingWithGeneric(...) - Remove
Any#bindViewWithGeneric(view) - Add
ViewBindingUtil.inflateWithGeneric(this, ...) - Add
ViewBindingUtil.bindWithGeneric(this, view) - Add the class of
SimpleListAdapter<T, VB> - Add
simpleListAdapter<T, VB>(diffCallback) {...}
viewbinding-brvah
- Remove
BindingHolderUtil.kt - Add
BaseViewHolder#getBinding(VB::bind)