summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chet Haase <chet@google.com> 2013-04-29 16:04:40 -0700
committer Chet Haase <chet@google.com> 2013-04-29 16:04:40 -0700
commit45c89c2fadeb0324a6ad34c955f9ae998182134b (patch)
tree7ab0ed20a49eb6e4fa1737ea5a2595b144244f7f
parentef325d060800e5e1c955969889b549494be576ee (diff)
Clarify behavior of fullscreen mode and softInputMode's adjustResize
Fullscreen window's will not resize when the keyboard comes on screen, regardless of the setting of the window's softInputMode field. This fix clarifies the docs to make this behavior more obvious. Issue #8754615 Clarify behavior of adjustResize and fullscreen interaction Change-Id: Ie056db4e328cefaf0edb54fe8cfa7a08f320c8d0
-rw-r--r--core/java/android/view/WindowManager.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java
index d52b1f3f21fe..541c503545d3 100644
--- a/core/java/android/view/WindowManager.java
+++ b/core/java/android/view/WindowManager.java
@@ -616,7 +616,10 @@ public interface WindowManager extends ViewManager {
* Window flag: hide all screen decorations (such as the status bar) while
* this window is displayed. This allows the window to use the entire
* display space for itself -- the status bar will be hidden when
- * an app window with this flag set is on the top layer.
+ * an app window with this flag set is on the top layer. A fullscreen window
+ * will ignore a value of {@link #SOFT_INPUT_ADJUST_RESIZE} for the window's
+ * {@link #softInputMode} field; the window will stay fullscreen
+ * and will not resize.
*
* <p>This flag can be controlled in your theme through the
* {@link android.R.attr#windowFullscreen} attribute; this attribute
@@ -1106,7 +1109,10 @@ public interface WindowManager extends ViewManager {
* method. This can <em>not</em> be combined with
* {@link #SOFT_INPUT_ADJUST_PAN}; if
* neither of these are set, then the system will try to pick one or
- * the other depending on the contents of the window.
+ * the other depending on the contents of the window. If the window's
+ * layout parameter flags include {@link #FLAG_FULLSCREEN}, this
+ * value for {@link #softInputMode} will be ignored; the window will
+ * not resize, but will stay fullscreen.
*/
public static final int SOFT_INPUT_ADJUST_RESIZE = 0x10;