The 3rd parameter of the TranslateAnimation
constructor you are using is a delta value, so the starting point is calculated like:
currentYPos + startingDeltaY
Since you seem to be passing in a Y
value that refers to the location of something on the screen, this delta value won't be correct.
Try using this constructor:
public TranslateAnimation (int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float toYValue)
Like this:
new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF, 0, Animation.ABSOLUTE, heightOfRootView-excuseContainer.getHeight(), Animation.ABSOLUTE, currentYPoint);