I have a View
inside a RelativeLayout
, and I managed to perform some animations to alter its position. Now I need the reversed animation that restore the view to its original position. Is there a way I can calculate the view's position according to its layout parameters?
PS: I can do this by storing the initial position into a variable, but I don't really want to introduce another state variable for something that could be calculated on the fly (in theory at least).