EmbeddingAnimationBackground


public abstract class EmbeddingAnimationBackground

Known direct subclasses
EmbeddingAnimationBackground.ColorBackground

An {@link EmbeddingAnimationBackground} to specify of using a developer-defined color as the animation background.


Background to be used for window transition animations for embedding activities if the animation requires a background.

Summary

Nested types

An {@link EmbeddingAnimationBackground} to specify of using a developer-defined color as the animation background.

Public fields

static final @NonNull EmbeddingAnimationBackground

The special EmbeddingAnimationBackground to represent the default value, which means to use the current theme window background color.

Public methods

static final @NonNull EmbeddingAnimationBackground.ColorBackground
createColorBackground(
    @IntRange(from = -16777216, to = -1) @ColorInt int color
)

Creates a ColorBackground to represent the given color.

Public fields

DEFAULT

public static final @NonNull EmbeddingAnimationBackground DEFAULT

The special EmbeddingAnimationBackground to represent the default value, which means to use the current theme window background color.

Public methods

createColorBackground

Added in 1.4.0-alpha05
public static final @NonNull EmbeddingAnimationBackground.ColorBackground createColorBackground(
    @IntRange(from = -16777216, to = -1) @ColorInt int color
)

Creates a ColorBackground to represent the given color.

Only opaque color is supported.

Parameters
@IntRange(from = -16777216, to = -1) @ColorInt int color

ColorInt of an opaque color.

Throws
kotlin.IllegalArgumentException

if the color is not opaque.

See also
DEFAULT

for the default value, which means to use the current theme window background color.