What is ViewBindingPropertyDelegate
masterViewBindingPropertyDelegate is a library designed to simplify working with Android View Binding. It provides three main benefits:
- Lifecycle Management: It automatically manages the ViewBinding lifecycle and clears references to prevent memory leaks.
- Non-nullable References: It eliminates the need to maintain nullable references to Views or ViewBindings in your Fragments or Activities.
- Lazy Initialization: It creates the ViewBinding lazily.
The library offers two variants:
vbpd: The recommended version that does not use reflection for better performance.vbpd-reflection: Includes additional factories that use reflection under the hood.