The problem is that, I am animating some views in my layout then trying to get the left and right variables of that views after the animation but the returning value is always the initial value when they were not animated.
I am using property animations like this:
For example this is moving the middle frame by 4/3 of its width and making it appear again on the screen by playing with its alpha...
middleFrame.animate().translationXBy(4*(middleFrame.getWidth())/3).alpha(1.0f);
However after the animation I should be able to get the changed left and right value of the middleFrame but when I try to do that as i said before it gives me the previous values..
I have checked this question and Romain Guy's answer How to get the absolute coordinates of a view
However, I couldn't quite understand when can I use the getLeft/Right or getLocationOnScreen() etc methods.
I have already tried getLocationOnScreen or getLocationInWindow but they return the same results.
Thanks in advance.