dialog background dimming in android

Solutions on MaxInterview for dialog background dimming in android by the best coders in the world

showing results for - "dialog background dimming in android"
Naomie
23 Apr 2018
1Window window = dialog.getWindow();
2if(window != null){
3   window.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); // This flag is required to set otherwise the setDimAmount method will not show any effect
4   window.setDimAmount(0.5f); //0 for no dim to 1 for full dim
5}
6
similar questions
queries leading to this page
dialog background dimming in android