implement View.getLocationInWindow() and MotionEvent.offsetLocation()

This is needed for NestedScrollViews to detect and correct parent scroll offset
This commit is contained in:
Julian Winkler
2024-03-27 22:50:58 +01:00
parent 8f770d38d1
commit 9b9e046d68
2 changed files with 8 additions and 2 deletions

View File

@@ -1115,7 +1115,9 @@ public class View extends Object {
return new IBinder();
}
public void getLocationInWindow(int[] xxx) {}
public void getLocationInWindow(int[] location) {
getLocationOnScreen(location);
}
public void addOnAttachStateChangeListener(OnAttachStateChangeListener l) {}