Make work with Android View Binding simpler
APACHE-2.0 License
Bot releases are visible (Hide)
Published by kirich1409 over 1 year ago
viewbindingpropertydelegate-core
- base API for ViewBindingPropertyDelegate
viewbindingpropertydelegate-noreflection
- API to work with ViewBindingPropertyDelegate
without reflection calls
viewbindingpropertydelegate
-> viewbindingpropertydelegate-full
- All possible ways to create ViewBindingPropertyDelegate
Published by kirich1409 over 2 years ago
Bug fixes
Published by kirich1409 almost 3 years ago
November 19, 2021
Published by kirich1409 almost 3 years ago
New library mode to check correct usage of ViewBinding. Enabled by default. To return previous
behaviour call ViewBindingPropertyDelegate.strcitMode = false
Callback when a ViewBinding in ViewBindingPropertyDelegate will be destroyed
Instead of overriding Fragment.onDestroyView() use
viewBinding(
...,
onViewDestroyed = { vb: ViewBinding ->
// reset views inside the ViewBinding
}
)
ViewBindingPropertyDelegate throws an exception when it will be used before host
(Fragment, Activity, etc.) be ready to create a ViewBinding. As an example, access to
ViewBindingPropertyDelegate in a Fragment before onViewCreated() will be called now throw
an Exception.
Published by kirich1409 over 3 years ago
Published by kirich1409 over 3 years ago
Published by kirich1409 over 3 years ago
Fragment
's ViewLifecycleOwner
Published by kirich1409 over 3 years ago
Published by kirich1409 over 3 years ago
ViewGroup
bindingsLifecycleViewBindingProperty
lifecycle management improvementsDialogFragment
Published by kirich1409 almost 4 years ago
Published by kirich1409 almost 4 years ago
RecyclerView.ViewHolder
ViewGroup
viewBinding
delegate without specifying rootView.viewBinding
with reflectionViewBinding
using ViewBinding.inflate
instead of ViewBinding.bind
viewBinding()
in Activities use ViewBinding.bind
instead of ViewBinding.inflate
. To return previous behaviour use viewBinding(CreateMethod.INFLATE)
viewBinding
delegate and implementation with lifecyclePublished by kirich1409 almost 4 years ago
DialogFragment
Published by kirich1409 almost 4 years ago
ViewBinding
using ViewBinding.inflate(LayoutInflater)
ViewBindingProperty
using Class<ViewBinding>
instanceViewBindingProperty
Published by kirich1409 about 4 years ago
Published by kirich1409 about 4 years ago
Published by kirich1409 about 4 years ago
vbpd-noreflection
without reflection when create a ViewBindingProperty
Published by kirich1409 about 4 years ago
Published by kirich1409 about 4 years ago
Published by kirich1409 about 4 years ago
viewBinding
without reflection