I have searched internet, but haven't found answer to my problem. I want to animate a view to slide up. But how can I keep it there? It always resets and goes back to original position.
Asked
Active
Viewed 401 times
-2
-
1http://stackoverflow.com/questions/3345084/how-can-i-animate-a-view-in-android-and-have-it-stay-in-the-new-position-size ...That's the first result you get if you google 'Android animation view stay' – coder Apr 14 '13 at 19:47
1 Answers
2
public void setFillAfter (boolean fillAfter)
Added in API level 1 If fillAfter is true, the transformation that this animation performed will persist when it is finished. Defaults to false if not set. Note that this applies to individual animations and when using an AnimationSet to chain animations.
see more here: Android Animation

Daniel L.
- 5,060
- 10
- 36
- 59