summaryrefslogtreecommitdiff
path: root/core/java/android/view/View.java
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-06-23 07:13:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-23 07:13:25 -0700
commit41e6e0c49f51e5bafca4912d407202f572d4e208 (patch)
treedc2bf7f938a2fa05c692da08b7c59ed3eca86eb5 /core/java/android/view/View.java
parent4786626b0fe62181f35afcc49f0d0aa10dc715e2 (diff)
parentc34188a95405526416325604386af4f48ba20918 (diff)
am c34188a9: resolved conflicts for merge of f8f76d52 to jb-dev-plus-aosp
* commit 'c34188a95405526416325604386af4f48ba20918': Add the possibility to modify the View focus rect
Diffstat (limited to 'core/java/android/view/View.java')
-rw-r--r--core/java/android/view/View.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 25f65164c713..a6a5427efc42 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -8726,6 +8726,18 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
/**
+ * When searching for a view to focus this rectangle is used when considering if this view is
+ * a good candidate for receiving focus.
+ *
+ * By default, the rectangle is the {@link #getDrawingRect}) of the view.
+ *
+ * @param r The rectangle to fill in, in this view's coordinates.
+ */
+ public void getFocusRect(Rect r) {
+ getDrawingRect(r);
+ }
+
+ /**
* Utility method to retrieve the inverse of the current mMatrix property.
* We cache the matrix to avoid recalculating it when transform properties
* have not changed.