Skip to content

Releases: DylanCaiCoding/ViewBindingKTX

2.1.0

21 Jun 09:46
Compare
Choose a tag to compare

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

  • 添加新类 ActivityBindingActivityBindingDelegateFragmentBindingFragmentBindingDelegate
  • 使用 Kotlin 委托特性能更简单地把 ViewBinding 集成到基类。 ( Activity 示例 / Fragment 示例 )

2.0.6

10 May 07:46
Compare
Choose a tag to compare
  • Optimize the exception message that no view to create binding property in Fragment. #54

2.0.5

07 Apr 10:27
Compare
Choose a tag to compare

2.0.4

07 Apr 01:31
Compare
Choose a tag to compare
  • OnItemClickListener support for SAM

2.0.3

04 Apr 23:40
Compare
Choose a tag to compare
  • Optimize the usage of SimpleListAdapter
  • Replace NavigationView.updateHeaderView<VB> {...} to NavigationView.setHeaderView<VB> {...}

2.0.2

01 Mar 07:04
Compare
Choose a tag to compare
  • Fix the exception in Gradle 7.1.1 #43

2.0.1

11 Jan 07:23
Compare
Choose a tag to compare

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

04 Jan 15:31
Compare
Choose a tag to compare

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)

1.2.6

19 Nov 03:44
Compare
Choose a tag to compare
  • Optimize exception message in fragments #37

1.2.5

16 Nov 03:17
Compare
Choose a tag to compare
  • Handle InvocationTargetException #36