What are the differences between setX(), setY(), and setTranslationX(), setTranslationY()? Are they setting offsets on existing coordinates or setting absolute positions?
Setting X and Y sets the position of the view relative to the parent view's top left corner (not the absolute position on the screen). Setting the translation moves the view relative to where the parent laid it out. (The parent laid the view out at (left, top).)