Java Code Examples for android.view.View#STATUS_BAR_TRANSLUCENT

The following examples show how to use android.view.View#STATUS_BAR_TRANSLUCENT . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: android_9.0.0_r45   File: PolicyControl.java    License: Apache License 2.0 6 votes vote down vote up
public static int getSystemUiVisibility(WindowState win, LayoutParams attrs) {
    attrs = attrs != null ? attrs : win.getAttrs();
    int vis = win != null ? win.getSystemUiVisibility()
            : (attrs.systemUiVisibility | attrs.subtreeSystemUiVisibility);
    if (sImmersiveStatusFilter != null && sImmersiveStatusFilter.matches(attrs)) {
        vis |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                | View.SYSTEM_UI_FLAG_FULLSCREEN
                | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
        vis &= ~(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                | View.STATUS_BAR_TRANSLUCENT);
    }
    if (sImmersiveNavigationFilter != null && sImmersiveNavigationFilter.matches(attrs)) {
        vis |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
        vis &= ~(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                | View.NAVIGATION_BAR_TRANSLUCENT);
    }
    return vis;
}
 
Example 2
public StatusBarController() {
    super("StatusBar",
            View.STATUS_BAR_TRANSIENT,
            View.STATUS_BAR_UNHIDE,
            View.STATUS_BAR_TRANSLUCENT,
            StatusBarManager.WINDOW_STATUS_BAR,
            FLAG_TRANSLUCENT_STATUS,
            View.STATUS_BAR_TRANSPARENT);
}