您的位置:首页 > 运维架构

PopWindow

2017-10-27 00:00 148 查看
View inflate1 = LayoutInflater.from(Main2Activity.this).inflate(R.layout.pop, null);
PopupWindow popupWindow=new PopupWindow(inflate1, ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT,true);
popupWindow.setTouchable(true);
popupWindow.setBackgroundDrawable(new ColorDrawable(0x000000));
popupWindow.showAtLocation(inflate1, Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL,0,0);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  popwindow