This is my xml for rotating the TextView:
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fillAfter="true"
android:fromDegrees="0"
android:interpolator="@android:anim/accelerate_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="180" />
When I press on the button 'Rotate', the TextView will rotate normally, after rotation it will appear flipped vertically as the rotation angle is 180.
The problem is when I press on the button again to rotate it for another 180 degrees, it returns to its original state before rotation.
I want it to rotate from its last state.