summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Svetoslav Ganov <svetoslavganov@google.com> 2012-02-01 18:08:01 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-02-01 18:08:01 -0800
commit4e921197e26b64a6fdc0ab896922b72d8565b427 (patch)
tree1a779e70c35eee51659e1c73f150d1f79824e142
parent80ec4ab7f56646e464dbe6ff123703a178401b90 (diff)
parent13fd561848ec43573d4cfeec899b4d308841c251 (diff)
Merge "Update the comment for View#clearFocus"
-rw-r--r--core/java/android/view/View.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index d80d0801f2c9..cf4cff92c841 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -3761,8 +3761,14 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
}
/**
- * Called when this view wants to give up focus. This will cause
- * {@link #onFocusChanged(boolean, int, android.graphics.Rect)} to be called.
+ * Called when this view wants to give up focus. If focus is cleared
+ * {@link #onFocusChanged(boolean, int, android.graphics.Rect)} is called.
+ * <p>
+ * <strong>Note:</strong> When a View clears focus the framework is trying
+ * to give focus to the first focusable View from the top. Hence, if this
+ * View is the first from the top that can take focus, then its focus will
+ * not be cleared nor will the focus change callback be invoked.
+ * </p>
*/
public void clearFocus() {
if (DBG) {