KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd like to grow a view with each click using a ScaleAnimation. I've managed the effects of the animation persist after it has finished with the fillAfter, but the problem now is, the animation always starts from state 0 (as the View is defined in the XML) - on click the view resets and animates back to the state it was just after the first animation. The animation is defined in an XML: <scale xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_decelerate_interpolator" android:fromXScale="1" android:toXScale="1.5" android:fromYScale="1" android:toYScale="1.5" android:pivotX="50%" android:pivotY="50%" android:duration="1000" android:fillAfter="true" />
Tags (comma-separated)
Save Edits
Cancel