summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2011-05-26 10:29:45 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-26 10:29:45 -0700
commit3453b1c584f456a18f17d74a72c044b4e39c6405 (patch)
treebf042c61fe71a52fab2883a5aee00630e2417493
parent3f8956d82bb40b15acee26017db0d13ddf43c80a (diff)
parentec6331b82a41beda86d9ff1797af6001603f0053 (diff)
downloadframeworks_base-3453b1c584f456a18f17d74a72c044b4e39c6405.zip
frameworks_base-3453b1c584f456a18f17d74a72c044b4e39c6405.tar.gz
frameworks_base-3453b1c584f456a18f17d74a72c044b4e39c6405.tar.bz2
Merge "docs: add accepted values for setting status bar visibility"
-rw-r--r--core/java/android/view/View.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 98d07c4..e54046d 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -11737,6 +11737,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* Request that the visibility of the status bar be changed.
+ * @param visibility Either {@link #STATUS_BAR_VISIBLE} or {@link #STATUS_BAR_HIDDEN}.
*/
public void setSystemUiVisibility(int visibility) {
if (visibility != mSystemUiVisibility) {
@@ -11749,11 +11750,16 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* Returns the status bar visibility that this view has requested.
+ * @return Either {@link #STATUS_BAR_VISIBLE} or {@link #STATUS_BAR_HIDDEN}.
*/
public int getSystemUiVisibility() {
return mSystemUiVisibility;
}
+ /**
+ * Set a listener to receive callbacks when the visibility of the system bar changes.
+ * @param l The {@link OnSystemUiVisibilityChangeListener} to receive callbacks.
+ */
public void setOnSystemUiVisibilityChangeListener(OnSystemUiVisibilityChangeListener l) {
mOnSystemUiVisibilityChangeListener = l;
if (mParent != null && mAttachInfo != null && !mAttachInfo.mRecomputeGlobalAttributes) {