implement View.getHitRect()

This commit is contained in:
Julian Winkler
2024-05-15 23:06:27 +02:00
parent c167e183be
commit de9ea3655e

View File

@@ -1064,7 +1064,9 @@ public class View implements Drawable.Callback {
setBackgroundDrawable(getResources().getDrawable(resid)); setBackgroundDrawable(getResources().getDrawable(resid));
} }
public void getHitRect(Rect outRect) {} public void getHitRect(Rect outRect) {
outRect.set(left, top, right, bottom);
}
public final boolean getLocalVisibleRect(Rect r) { return false; } public final boolean getLocalVisibleRect(Rect r) { return false; }
public final int getScrollX() { public final int getScrollX() {