Java Code Examples for android.view.View#STATUS_BAR_TRANSLUCENT

The following examples show how to use android.view.View#STATUS_BAR_TRANSLUCENT . 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 check out the related API usage on the sidebar.
Example 1
Source File: PolicyControl.java    From android_9.0.0_r45 with 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
Source File: StatusBarController.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
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);
}