Android page Curl animation
I’m implementing a 2D page curl in the native canvas. Check my answer in: Implement page curl on android? EDIT: The code project of my implementation: http://code.google.com/p/android-page-curl/ EDIT2: Links updated
I’m implementing a 2D page curl in the native canvas. Check my answer in: Implement page curl on android? EDIT: The code project of my implementation: http://code.google.com/p/android-page-curl/ EDIT2: Links updated
You can do this by transforming the context with myContext.scale(-1,1) before drawing your image, however This is going to slow down your game. It’s a better idea to have a separate, reversed sprite.
You can use ViewFlipper to flip between views. http://developer.android.com/reference/android/widget/ViewFlipper.html Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip between each child at a regular interval. It is possible to assign different animations. See here for … Read more
To apply both scale and flip, just list both in your transform: transform=”scale(2,2) scale(-1,1)” Or simply combine the values: transform=”scale(-2,2)” Of course, the issue you have with negative scales is that the objects get flipped across the origin (top left) of the SVG, so they can go off the edge of the document. You need … Read more