Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

androidx.compose.animation

Classes

EnterTransition

EnterTransition defines how an AnimatedVisibility Composable appears on screen as it becomes visible.

ExitTransition

ExitTransition defines how an AnimatedVisibility Composable disappears on screen as it becomes not visible.

SplineBasedFloatDecayAnimationSpec

A native Android fling curve decay.

Annotations

ExperimentalAnimationApi

Top-level functions summary

Animatable<Color, AnimationVector4D>
Animatable(initialValue: Color)

This Animatable function creates a Color value holder that automatically animates its value when the value is changed via animateTo.

Unit
AnimatedVisibility(visible: Boolean, modifier: Modifier = Modifier, enter: EnterTransition = fadeIn() + expandIn(), exit: ExitTransition = shrinkOut() + fadeOut(), initiallyVisible: Boolean = visible, content: () -> Unit)

AnimatedVisibility composable animates the appearance and disappearance of its content, as visible value changes.

Unit
Crossfade(targetState: T, modifier: Modifier = Modifier, animationSpec: FiniteAnimationSpec<Float> = tween(), content: (T) -> Unit)

Crossfade allows to switch between two layouts with a crossfade animation.

State<Color>
animateColorAsState(targetValue: Color, animationSpec: AnimationSpec<Color> = colorDefaultSpring, finishedListener: (Color) -> Unit = null)

Fire-and-forget animation function for Color.

actual DecayAnimationSpec<Float>

EnterTransition
expandHorizontally(expandFrom: Alignment.Horizontal = Alignment.End, initialWidth: (fullWidth: Int) -> Int = { 0 }, animationSpec: FiniteAnimationSpec<IntSize> = spring(), clip: Boolean = true)

This expands the clip bounds of the appearing content horizontally, from the width returned from initialWidth to the full width.

EnterTransition
expandIn(expandFrom: Alignment = Alignment.BottomEnd, initialSize: (fullSize: IntSize) -> IntSize = { IntSize(0, 0) }, animationSpec: FiniteAnimationSpec<IntSize> = spring(), clip: Boolean = true)

This expands the clip bounds of the appearing content from the size returned from initialSize to the full size.

EnterTransition
expandVertically(expandFrom: