Can one undo the changes he made on View properties using animate()
on it?
In particular, how to undo changes made using animate().yBy(x)
?
Note that I tried using animate().yBy(-x)
and it works most of the times, but there are times that for some reason animate().yBy(x)
seem not to be completed correctly (especially when the fragment pauses and then resumed) so animate().yBy(-x)
is over-moving the view.
I'm looking for a way to make the View reset its properties to the way they were before I changed them using animate()
.