Google 致力于为黑人社区推动种族平等。查看具体举措

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>(@NonNull context: Context, @NonNull attrs: AttributeSet)

Public methods
open Unit
captureEndValues(@NonNull transitionValues: TransitionValues)

open Unit
captureStartValues(@NonNull transitionValues: TransitionValues)

open Animator?
createAnimator(@NonNull sceneRoot: ViewGroup, @Nullable startValues: TransitionValues?, @Nullable endValues: TransitionValues?)

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

open Array<String!>

Inherited functions