I am using the view.getLocationInWindow(positionVariable)
method, but the y position is giving some offset value, maybe because of the notification bar on the top. So I used an offset variable.
But the problem is, when I tested on another device, the notification bar was on the bottom. So my view translation didn't work well.
How to get the exact x,y position of a view independent of where the notification bar is?