Loading core/java/android/view/animation/Animation.java +1 −1 Original line number Diff line number Diff line Loading @@ -323,7 +323,7 @@ public abstract class Animation implements Cloneable { /** * Initialize this animation with the dimensions of the object being * animated as well as the objects parents. (This is to support animation * sizes being specifed relative to these dimensions.) * sizes being specified relative to these dimensions.) * * <p>Objects that interpret Animations should call this method when * the sizes of the object being animated and its parent are known, and Loading core/java/android/view/animation/RotateAnimation.java +17 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,8 @@ public class RotateAnimation extends Animation { mPivotYValue = d.value; a.recycle(); initializePivotPoint(); } /** Loading Loading @@ -107,6 +109,7 @@ public class RotateAnimation extends Animation { mPivotYType = ABSOLUTE; mPivotXValue = pivotX; mPivotYValue = pivotY; initializePivotPoint(); } /** Loading Loading @@ -143,6 +146,20 @@ public class RotateAnimation extends Animation { mPivotXType = pivotXType; mPivotYValue = pivotYValue; mPivotYType = pivotYType; initializePivotPoint(); } /** * Called at the end of constructor methods to initialize, if possible, values for * the pivot point. This is only possible for ABSOLUTE pivot values. */ private void initializePivotPoint() { if (mPivotXType == ABSOLUTE) { mPivotX = mPivotXValue; } if (mPivotYType == ABSOLUTE) { mPivotY = mPivotYValue; } } @Override Loading core/java/android/view/animation/ScaleAnimation.java +17 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,8 @@ public class ScaleAnimation extends Animation { mPivotYValue = d.value; a.recycle(); initializePivotPoint(); } /** Loading Loading @@ -178,6 +180,7 @@ public class ScaleAnimation extends Animation { mPivotYType = ABSOLUTE; mPivotXValue = pivotX; mPivotYValue = pivotY; initializePivotPoint(); } /** Loading Loading @@ -218,6 +221,20 @@ public class ScaleAnimation extends Animation { mPivotXType = pivotXType; mPivotYValue = pivotYValue; mPivotYType = pivotYType; initializePivotPoint(); } /** * Called at the end of constructor methods to initialize, if possible, values for * the pivot point. This is only possible for ABSOLUTE pivot values. */ private void initializePivotPoint() { if (mPivotXType == ABSOLUTE) { mPivotX = mPivotXValue; } if (mPivotYType == ABSOLUTE) { mPivotY = mPivotYValue; } } @Override Loading Loading
core/java/android/view/animation/Animation.java +1 −1 Original line number Diff line number Diff line Loading @@ -323,7 +323,7 @@ public abstract class Animation implements Cloneable { /** * Initialize this animation with the dimensions of the object being * animated as well as the objects parents. (This is to support animation * sizes being specifed relative to these dimensions.) * sizes being specified relative to these dimensions.) * * <p>Objects that interpret Animations should call this method when * the sizes of the object being animated and its parent are known, and Loading
core/java/android/view/animation/RotateAnimation.java +17 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,8 @@ public class RotateAnimation extends Animation { mPivotYValue = d.value; a.recycle(); initializePivotPoint(); } /** Loading Loading @@ -107,6 +109,7 @@ public class RotateAnimation extends Animation { mPivotYType = ABSOLUTE; mPivotXValue = pivotX; mPivotYValue = pivotY; initializePivotPoint(); } /** Loading Loading @@ -143,6 +146,20 @@ public class RotateAnimation extends Animation { mPivotXType = pivotXType; mPivotYValue = pivotYValue; mPivotYType = pivotYType; initializePivotPoint(); } /** * Called at the end of constructor methods to initialize, if possible, values for * the pivot point. This is only possible for ABSOLUTE pivot values. */ private void initializePivotPoint() { if (mPivotXType == ABSOLUTE) { mPivotX = mPivotXValue; } if (mPivotYType == ABSOLUTE) { mPivotY = mPivotYValue; } } @Override Loading
core/java/android/view/animation/ScaleAnimation.java +17 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,8 @@ public class ScaleAnimation extends Animation { mPivotYValue = d.value; a.recycle(); initializePivotPoint(); } /** Loading Loading @@ -178,6 +180,7 @@ public class ScaleAnimation extends Animation { mPivotYType = ABSOLUTE; mPivotXValue = pivotX; mPivotYValue = pivotY; initializePivotPoint(); } /** Loading Loading @@ -218,6 +221,20 @@ public class ScaleAnimation extends Animation { mPivotXType = pivotXType; mPivotYValue = pivotYValue; mPivotYType = pivotYType; initializePivotPoint(); } /** * Called at the end of constructor methods to initialize, if possible, values for * the pivot point. This is only possible for ABSOLUTE pivot values. */ private void initializePivotPoint() { if (mPivotXType == ABSOLUTE) { mPivotX = mPivotXValue; } if (mPivotYType == ABSOLUTE) { mPivotY = mPivotYValue; } } @Override Loading