设置引导页跟状态栏的透明

、、

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {    Window window = getWindow();    // Translucent status bar    window.setFlags(            WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,            WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);    
// Translucent navigation bar    
    window.setFlags(                              WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION,            WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);}

你可能感兴趣的:(设置引导页跟状态栏的透明)