ChangeImageTransform

open class ChangeImageTransform : Transition
kotlin.Any
   ↳ androidx.transition.Transition
   ↳ androidx.transition.ChangeImageTransform

This Transition captures an ImageView's matrix before and after the scene change and animates it during the transition.

In combination with ChangeBounds, ChangeImageTransform allows ImageViews that change size, shape, or android.widget.ImageView.ScaleType to animate contents smoothly.

Summary

Inherited constants
Public constructors

<init>(context: Context!, attrs: AttributeSet!)

Public methods
open Animator?
createAnimator(sceneRoot: ViewGroup, startValues: TransitionValues?, endValues: TransitionValues?)

Creates an Animator for ImageViews moving, changing dimensions, and/or changing android.widget.ImageView.ScaleType.

open Array<String!>?

open Unit

open Unit

Inherited functions

Public constructors

<init>

ChangeImageTransform()

<init>

ChangeImageTransform(context: Context!, attrs: AttributeSet!)

Public methods

createAnimator

open fun createAnimator(sceneRoot: ViewGroup, startValues: TransitionValues?, endValues: TransitionValues?): Animator?

Creates an Animator for ImageViews moving, changing dimensions, and/or changing android.widget.ImageView.ScaleType.

Parameters
sceneRoot ViewGroup: The root of the transition hierarchy.
startValues ViewGroup: The values for a specific target in the start scene.
endValues ViewGroup: The values for the target in the end scene.
Return
Animator?: An Animator to move an ImageView or null if the View is not an ImageView, the Drawable changed, the View is not VISIBLE, or there was no change.

getTransitionProperties

open fun getTransitionProperties(): Array<String!>?

captureStartValues

open fun captureStartValues(transitionValues: TransitionValues): Unit

captureEndValues

open fun captureEndValues(transitionValues: TransitionValues): Unit