Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b69b6f0 authored by Chet Haase's avatar Chet Haase
Browse files

Make the new android.animation package public

Change-Id: Iff31676f25fc989707a1e17fb172296014a22c27
parent f54a8d7c
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ package android.animation;
import android.view.animation.Interpolator;

/**
 * This class represents timea time/value pair for an animation. The Keyframe class is used
 * This class holds a time/value pair for an animation. The Keyframe class is used
 * by {@link Animator} to define the values that the animation target will have over the course
 * of the animation. As the time proceeds from one keyframe to the other, the value of the
 * target object will animate between the value at the previous keyframe and the value at the
@@ -144,7 +144,7 @@ public class Keyframe {
    /**
     * Sets the value for this Keyframe.
     *
     * @param The value for this Keyframe.
     * @param value value for this Keyframe.
     */
    public void setValue(Object value) {
        mValue = value;
@@ -163,7 +163,7 @@ public class Keyframe {
    /**
     * Sets the time for this keyframe, as a fraction of the overall animation duration.
     *
     * @param The time associated with this keyframe, as a fraction of the overall animation
     * @param fraction time associated with this keyframe, as a fraction of the overall animation
     * duration. This should be a value between 0 and 1.
     */
    public void setFraction(float fraction) {
@@ -192,9 +192,8 @@ public class Keyframe {

    /**
     * Gets the type of keyframe. This information is used by Animator to determine the type of
     * {@linke TypeEvaluator} to use when calculating values between keyframes. The type is based
     * on the type of Keyframe created. For example, {@link IntKeyframe} returns a value of
     * <code>int.class</code>. This superclass returns a value of <code>Object.class</code>.
     * {@link TypeEvaluator} to use when calculating values between keyframes. The type is based
     * on the type of Keyframe created.
     *
     * @return The type of the value stored in the Keyframe.
     */
+6 −6
Original line number Diff line number Diff line
@@ -29,10 +29,10 @@ import java.util.HashMap;
 * can be set up to play together, in sequence, or after a specified delay.
 *
 * <p>There are two different approaches to adding animations to a <code>Sequencer</code>:
 * either the {@link Sequencer#playTogether(Animatable...) playTogether()} or
 * {@link Sequencer#playSequentially(Animatable...) playSequentially()} methods can be called to add
 * either the {@link Sequencer#playTogether(Animatable[]) playTogether()} or
 * {@link Sequencer#playSequentially(Animatable[]) playSequentially()} methods can be called to add
 * a set of animations all at once, or the {@link Sequencer#play(Animatable)} can be
 * used in conjunction with methods in the {@link myandroid.animation.Sequencer.Builder Builder}
 * used in conjunction with methods in the {@link android.animation.Sequencer.Builder Builder}
 * class to add animations
 * one by one.</p>
 *
@@ -46,7 +46,7 @@ import java.util.HashMap;
public final class Sequencer extends Animatable {

    /**
     * Tracks aniamtions currently being played, so that we know what to
     * Tracks animations currently being played, so that we know what to
     * cancel or end when cancel() or end() is called on this Sequencer
     */
    private final ArrayList<Animatable> mPlayingSet = new ArrayList<Animatable>();
@@ -577,8 +577,8 @@ public final class Sequencer extends Animatable {
     * intention of the <code>Builder</code> methods, along with the {@link
     * Sequencer#play(Animatable) play()} method of <code>Sequencer</code> is to make it possible to
     * express the dependency relationships of animations in a natural way. Developers can also use
     * the {@link Sequencer#playTogether(Animatable...) playTogether()} and {@link
     * Sequencer#playSequentially(Animatable...) playSequentially()} methods if these suit the need,
     * the {@link Sequencer#playTogether(Animatable[]) playTogether()} and {@link
     * Sequencer#playSequentially(Animatable[]) playSequentially()} methods if these suit the need,
     * but it might be easier in some situations to express the sequence of animations in pairs.
     * <p/>
     * <p>The <code>Builder</code> object cannot be constructed directly, but is rather constructed
+2 −1
Original line number Diff line number Diff line
<html>
<body>
    {@hide}
Provides classes for animating values over time, and setting those values on target
objects.
</body>
</html>
+0 −1
Original line number Diff line number Diff line
@@ -99,7 +99,6 @@ public class AnimationUtils {
     * @param id The resource id of the animation to load
     * @return The animation object reference by the specified id
     * @throws NotFoundException when the animation cannot be loaded
     * @hide
     */
    public static Animatable loadAnimator(Context context, int id)
            throws NotFoundException {