keepAnimatorsInViewTreeInSync

fun keepAnimatorsInViewTreeInSync(view: View)

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 by the system UI upon its initialisation.

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