mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-05-08 11:38:12 +03:00
implement View.getDrawingRect()
This commit is contained in:
parent
255eed3e59
commit
096919ec37
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue