1

Android simple animation - 90 degree rotation around X axis

view story
linux-howto

http://stackoverflow.com – I'm rotating a view 90 degrees around the X axis. (I.e. it looks like the view is falling forward out of the screen towards the user). I extend Animation, and inside applyTransformation(), I do 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); cam (HowTos)