I have problem statement where I have to detect changes in Android View's location.
eg. I should get notified when view's location is changed by following API call
View.setX() or View.setY()
I can extend the View and override above two methods but if View is inside some parent view and if someone calls ParentView.setX()
or ParentView.setY()
, it will still update child view location.
I also tried onDraw method, it gets called only once. Is there any method available which get notified every time View's location state is updated.