ScaleProvider

A class that configures and is able to provide an Animator that scales a view.

ScaleProvider's constructor optionally takes a growing parameter. By default, this is set to true and will increase the size of the target both when appearing and disappearing. This is useful when pairing two animating targets, one appearing and one disappearing, that should both be either growing or shrinking to create a visual relationship.

Constructors

Link copied to clipboard
constructor()
constructor(growing: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun createAppear(@NonNull sceneRoot: ViewGroup, @NonNull view: View): Animator
Should return an Animator that animates in the appearing target view.
Link copied to clipboard
open fun createDisappear(@NonNull sceneRoot: ViewGroup, @NonNull view: View): Animator
Should return an Animator that animates out the disappearing target view.
Link copied to clipboard
open fun isGrowing(): Boolean
Whether or not this animation's target will grow or shrink in size.
Link copied to clipboard
Whether or not a scale animation will be run on this animation's target when disappearing.
Link copied to clipboard
open fun setGrowing(growing: Boolean)
Set whether or not this animation's target will grow or shrink in size.
Link copied to clipboard
open fun setScaleOnDisappear(scaleOnDisappear: Boolean)
Set whether or not a scale animation will be run on this animation's target when disappearing.