diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 179f6ee832271..4dc1fca24f36d 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -11785,7 +11785,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * user and that ideally it should not be covered. Setting this is only appropriate for UI * where the user would likely take action to uncover it. *
- * The system will try to respect this, but when not possible will ignore it. + * The system will try to respect this preference, but when not possible will ignore it. + *
+ * Note: while this is set to {@code true}, the system will ignore the {@code Rect}s provided + * through {@link #setPreferKeepClearRects} (but not clear them). *
* @see #setPreferKeepClearRects * @see #isPreferKeepClear @@ -11817,11 +11820,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * user and that ideally they should not be covered. Setting this is only appropriate for UI * where the user would likely take action to uncover it. *
- * If the whole view is preferred to be clear ({@link #isPreferKeepClear}), the rects set here - * will be ignored. - *
* The system will try to respect this preference, but when not possible will ignore it. *
+ * Note: While {@link #isPreferKeepClear} is {@code true}, the {@code Rect}s set here are + * ignored. + *
* @see #setPreferKeepClear * @see #getPreferKeepClearRects */ diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 3a2401a970094..7150fca5ab991 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -3364,7 +3364,7 @@ area for the user and that ideally it should not be covered. Setting this is only appropriate for UI where the user would likely take action to uncover it.
The system will try to respect this, but when not possible will ignore it. - See {@link android.view.View#setPreferKeepClear}. --> +
This is equivalent to {@link android.view.View#setPreferKeepClear}.-->