getWindow setFlag

dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND, 

WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

 

        contentView  将变成模糊的

 

 

       dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND, 

WindowManager.LayoutParams.FLAG_DIM_BEHIND);

 

        contentView 变得黯淡,不可以被点击touch

        dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE, 

WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);

       contentView 将变得黯淡 ,可以被点击touch

 

你可能感兴趣的:(window)