0
可能重复弹出显示淡出屏幕:
Blur or dim background when Android PopupWindow active如何模糊或当activtity在android系统
我要模糊或褪色的画面时,我的自定义弹出展我的活动。 我使用弹出窗口类自定义弹出窗口。但当弹出显示 然后我的活动布局不模糊或变暗或褪色,请帮助我实现这一点。 在此先感谢
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View layoutInflate = inflater.inflate(R.layout.custom_dialog_layout, relativeLayout);
PopupWindow tagPopupWindow tagPopupWindow = new PopupWindow(layoutInflate, width, LayoutParams.WRAP_CONTENT);