[go: nahoru, domu]

Update doc on TargetAnimation

Test: ./gradlew buildOnServer
Change-Id: I7f59d13f008a30ce65e27d9ff8553a4d979b9664
diff --git a/ui/ui-animation-core/src/main/java/androidx/animation/AnimationBuilder.kt b/ui/ui-animation-core/src/main/java/androidx/animation/AnimationBuilder.kt
index 58eef78..1d2b32e 100644
--- a/ui/ui-animation-core/src/main/java/androidx/animation/AnimationBuilder.kt
+++ b/ui/ui-animation-core/src/main/java/androidx/animation/AnimationBuilder.kt
@@ -178,8 +178,10 @@
  */
 class TweenBuilder<T> : DurationBasedAnimationBuilder<T>() {
     /**
-     * Easing (a.k.a interpolator) for the Tween animation.
-     * Default: [FastOutSlowInEasing]
+     * Easing function for the Tween animation. Default: [FastOutSlowInEasing]
+     *
+     * Easing functions define the rate of change of the value being animated. They allow animation
+     * to accelerate or decelerate in a specific pattern.
      */
     var easing: Easing = FastOutSlowInEasing
 
diff --git a/ui/ui-animation-core/src/main/java/androidx/animation/DynamicTargetAnimation.kt b/ui/ui-animation-core/src/main/java/androidx/animation/DynamicTargetAnimation.kt
index a1bd6ca..ed26ce6 100644
--- a/ui/ui-animation-core/src/main/java/androidx/animation/DynamicTargetAnimation.kt
+++ b/ui/ui-animation-core/src/main/java/androidx/animation/DynamicTargetAnimation.kt
@@ -17,9 +17,9 @@
 package androidx.animation
 
 /**
- * TargetAnimation class defines how to animate to a given target position.
+ * TargetAnimation class defines how to animate to a given target value.
  *
- * @param target Target position for the animation to animate to
+ * @param target Target value for the animation to animate to
  * @param animation The animation that will be used to animate to the target destination. This
  *                  animation defaults to a Spring Animation unless specified.
  */