Search code examples
androidtween

prevent translate tween from resetting - android


I have a simple translate tween that moves an object up 200 pixels. As soon as it's finished moving, it always bounces back to its original state and I don't want that. I want it to stay where I moved it.

I know this is should be an obvious solution, but I can't find the method/property anywhere to make it just stop and not reset...


Solution

  • Animation.setFillAfter(true) might be what you are looking for.