Android下PopupWindow隐藏及显示(showAtLocation/showAsDropDown)

来源:互联网 发布:unity3d android so 编辑:程序博客网 时间:2024/05/21 08:53
上一篇对PopupWindow的用法(位置、动画、焦点)做了详细介绍,具体查看Android中PopupWindow的用法(位置、动画、焦点)。下面说说PopupWindow的如何隐藏、显示及显示位置(showAtLocation/showAsDropDown)。1、PopupWindow的隐藏 

 final PopupWindow window = mPageStatWin; if(null != window && window.isShowing()) { win.dismiss(); }

原文地址:Android下PopupWindow隐藏及显示(showAtLocation/showAsDropDown)| http://orgcent.com/android-popupwindow-showasdropdown-showatlocation/