0
我正在旋转图像,现在想运行System.out.println(“Transformation done!”);改造完成后。方法是:完成图像转换后要做些什么
protected void applyTransformation(float interpolatedTime, Transformation t) {
final float fromDegrees = mFromDegrees;
float degrees = fromDegrees + ((mToDegrees - fromDegrees) * interpolatedTime);
final float centerX = mCenterX;
final float centerY = mCenterY;
final Camera camera = mCamera;
final Matrix matrix = t.getMatrix();
camera.save();
camera.rotateX(degrees);
camera.getMatrix(matrix);
camera.restore();
matrix.preTranslate(-centerX, -centerY);
matrix.postTranslate(centerX, centerY);
}
你的想法背后是什么,这段代码只是计算动画所需的信息。转换是即时计算的。你想知道什么时候动画完成? – RaphMclee 2012-07-25 20:27:18
是的,我想知道它何时完成。 – chief 2012-07-25 20:38:50
问题处理[在这里SO](http://stackoverflow.com/questions/2214735/android-animationdrawable-and-knowing-when-animation-ends)。 – RaphMclee 2012-07-26 06:08:57