Animation fill* attributes confuse me. The document is simple. For
example:
layout xml:
<TextView android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="0px"
android:layout_y="0px"
android:text="TEXT">
</TextView>
anim xml:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:startOffset="0"
android:fromXDelta="50"
android:toXDelta="100"
android:fromYDelta="0"
android:toYDelta="0"
android:duration="3000"
android:fillEnabled="true"
android:fillAfter="true"
/>
<translate
android:startOffset="4000"
android:fromXDelta="0"
android:toXDelta="0"
android:fromYDelta="50"
android:toYDelta="200"
android:duration="3000"
android:fillEnabled="true"
android:fillAfter="true"
/>
</set>
I think text will freeze after animation end. But it returned to (0,0)
again. Why? Is the second translate's fillAfter="true" invalid?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en