点击分享或搜索弹出PopupWindow
步骤总结
1、创建一个方法showPop();
2、在showPop里的步骤:
①创建一个要弹出的布局
②创建一个PopupWindow(参数有view,PopupWindow的宽-铺满,PopupWindow的高-自适应)
③点击外围关闭PopupWindow
④设置透明度 (同时创建一个setBackGroundAlpha方法)
⑥设置PopupWindow进场(Animation是在styles里自创的方法 详情请看styles)
⑦设置聚焦
⑧设置PopupWindow消失监听
⑨设置进场方式
下面是代码表演






网友评论