PopupWindow pop = new PopupWindow(getContext()); pop.setContentView(view); pop.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT)); pop.setOutsideTouchable(true); pop.setClippingEnabled(false); // 设置PopupWindow是否能响应点击事件 pop.setTouchable(true); pop.setWidth(ViewGroup.LayoutParams.MATCH_PARENT); pop.setHeight(ViewGroup.LayoutParams.MATCH_PARENT); pop.showAtLocation(getActivity().getWindow().getDecorView(), Gravity.BOTTOM,0,0);
popwindow全屏灰色透明度展示
最新推荐文章于 2024-04-29 13:20:27 发布