public class StatusBarHelper
extends java.lang.Object
| Constructor and Description |
|---|
StatusBarHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
hideStatusBar(android.view.Window window)
Hides the status bar and allows views to draw behind it.
|
static void |
showStatusBar(android.view.Window window)
Shows the status bar and prevents view from drawing behind it.
|
static void |
showStatusBar(android.view.Window window,
int statusBarColor)
Shows the status bar and prevents view from drawing behind it.
|
public static void hideStatusBar(android.view.Window window)
android:fitsSystemWindows="false"
to draw under the status bar.window - the Window containing the status bar to hidepublic static void showStatusBar(android.view.Window window,
int statusBarColor)
window - the Window containing the status bar to hidestatusBarColor - the color to make the status bar (has no effect if API level is less than 21)public static void showStatusBar(android.view.Window window)
window - the Window containing the status bar to hide