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


open class ChangeBounds : Transition
   ↳ androidx.transition.Transition
   ↳ androidx.transition.ChangeBounds

This transition captures the layout bounds of target views before and after the scene change and animates those changes during the transition.

A ChangeBounds transition can be described in a resource file by using the tag changeBounds, along with the other standard attributes of Transition.


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?)

open Boolean

Returns true when the ChangeBounds will resize by changing the clip bounds during the view animation or false when bounds are changed.

open Array<String!>

open Unit
setResizeClip(resizeClip: Boolean)

When resizeClip is true, ChangeBounds resizes the view using the clipBounds instead of changing the dimensions of the view during the animation.

Inherited functions