I have a separate class
getLeft() will return you the actual value only after layout step will complete and
onLayout of your
Answer will be called. So, to record the initial position of your view it's better to do so in
Now speaking of
onWindowFocusChanged() - documentation makes no promises on whether this method will be called before
onLayout or after, so it is not the best place to record the initial position of your view.