addState

open fun addState(specs: Array<Int>, animator: ValueAnimator)

Associates the given Animation with the provided drawable state specs so that it will be run when the View's drawable state matches the specs.

Parameters

specs

The drawable state specs to match against

animator

The animator to run when the specs match