ViewBindingPropertyDelegate
ViewBindingPropertyDelegate copied to clipboard
Make work with Android View Binding simpler
To reproduce 1. Open a fragment that is clearing some stuff via viewbinding in onDestroyView 2. Minimize app 3. Change system locale 4. Reopen app 5. Crash! Is it an...
When using the viewBinding in Activity I get the following error 
Trying to update to 1.5.2+, I find this usage causes a crash due to [a new internal check in the library](https://github.com/androidbroadcast/ViewBindingPropertyDelegate/blob/1.5.6/vbpd/vbpd-noreflection/src/main/java/by/kirich1409/viewbindingdelegate/FragmentViewBindings.kt#L83). ```kotlin private val binding by viewBinding { OnboardingContainerFragmentBinding.inflate(layoutInflater) }...
Need to stabilise work of VBPD in `DialogFragment`s. Need to check few cases - `Dialog` in `DialogFragment` without view - View wrapped in `DialogFragment`
I am create `BottomSheetDialogFragment` with using this libs Example view binding `private val binding: BottomAccountDialogBinding by viewBinding(BottomAccountDialogBinding::bind)` In `onCreateView` returned view `inflater.inflate(R.layout.bottom_account_dialog, container, false)` I am open new fragment of...
I am using this library 1.4.5 version. With this function `public inline fun Fragment.viewBinding( crossinline vbFactory: (View) -> T, @IdRes viewBindingRootId: Int )` And working in activity and fragment. When...
I have an app with lots of fragments. It does not use view models. I have been using BaseFragment() : Fragment() as I need onCreateView() and onViewCreated() to do all...
**Description:** If you quickly add and remove a fragment from the back stack, then there is a situation where onViewDestroyed is called after onViewCreated. This causes onViewCreated to use the...
If we reference viewBinding again in onDestroyView, this will trigger ViewBindingProperty#getValue, which will inflate another view if cache is null. example here: ``` class PersonListFragment : Fragment(R.layout.fragment_person_list) { // Without...