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

PopupWindow

2016-04-22 16:33 246 查看

PopupWindow

构造函数:

PopupWindow(View contentView, int width, int height);
PopupWindow(View contentView, int width, int height, boolean focusable);
PopupWindow(int width, int height)


focusable=false的话,多次new会重叠起来

设置focusable=true后,焦点会在PopupWindow上,也就是说,其他地方无法点击到了,不监听的话返回键也失效,给它设置个

setBackgroundDrawable(new ColorDrawable());


就好了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: