applyDefaultStateListAnimatorIfNeeded

fun View.applyDefaultStateListAnimatorIfNeeded()

Sets a StateListAnimator for click feedback to this if the user can interact with it by clicking it. This requires the view to have a click listener. Exceptions include EditTexts (the default animator is not wanted there) and views that have explicitly set a StateListAnimator.

If this has non-default scaling or alpha values then they are overridden.