Reputation: 955
I am trying to use view animation on an Imageview object.I have defined a rotate.xml file for the same.But I am getting couple of errors in the file:-
1)Element type "rotate" must be followed by either attribute specifications, ">" or "/>". 2)error: Error parsing XML: not well-formed (invalid token)
Here is my rotate.xml file:-
<?xml version="1.0" encoding="utf-8"?>
<rotate
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator"
android:fromDegrees="0"
android:toDegrees="180"
android:pivotX="50"
android:pivotY="50"
android:repeatCount="infinite"
android:duration="3000">
</rotate>
Upvotes: 1
Views: 2567
Reputation: 2380
What happens if you remove </rotate>
and replace >
with />
it could be trying to interpret the space between <rotate>
and </rotate>
Upvotes: 3