keepAnimatorsInViewTreeInSync

Applies StateListAnimators to the entire view hierarchy of view, ensuring that their look and feel are consistent. After calling this method, new child views introduced to the view hierarchy will automatically have their animators set as well if needed. This method is expected to be called upon the application initialization phase. It needs the lifecycleOwner to clean up its state when the lifecycle ends.

Views that already have a StateListAnimator set will not have theirs overwritten.