I managed to get a 2 sides card flip animation working on my android app with one issue: every time the device is flipped (landscape to portrait and vice versa) the screen layout gets recreated and always defaults to the first face of the card.
So, what's the best approach of preserving that state?
One option is to tell android that you will handle when the screen changes orientation, so that onCreate() is not called again when the screen changes orientations. To do this, add an entry for the specific activity in your manifest file. It should look something like this:
<activity
android:name="com.package.name.Activity"
android:configChanges="orientation"
android:label="@string/title_activity"
android:parentActivityName="com.package.name.Parent" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.package.name.Parent" />
</activity>
the line android:configChanges is what I'm referring to