implement View.getDrawingRect()

This commit is contained in:
Julian Winkler 2023-09-08 18:34:48 +02:00
parent 255eed3e59
commit 096919ec37

View file

@ -1312,4 +1312,11 @@ public class View extends Object {
public void setOnCreateContextMenuListener (View.OnCreateContextMenuListener l) {}
public void startAnimation(Animation animation) {}
public void getDrawingRect(Rect rect) {
rect.left = getScrollX();
rect.top = getScrollY();
rect.right = getScrollX() + getWidth();
rect.bottom = getScrollY() + getHeight();
}
}