playTogether
fun <T> AnimatorSet.playTogether(animators: Collection<ValueAnimator>, updateListener: (List<T>) -> Unit)
Content copied to clipboard
A helper function to play multiple ValueAnimators together and emit callbacks for each batch of updates. This assumes that this
has a duration specified such that all ValueAnimators run for the same amount of time, and that all ValueAnimators animate the same type, namely T.
fun AnimatorSet.playTogether(vararg animatorValues: Pair<Int, Int>, updateListener: (List<Int>) -> Unit)
Content copied to clipboard
A helper function to create ValueAnimators for multiple transitions between Int values, play them together, and emit callbacks for each batch of updates. This assumes that this
has a duration specified such that all ValueAnimators run for the same amount of time.