官方解释:
https://developer.android.google.cn/reference/android/widget/PopupWindow.html
This class represents a popup window that can be used to display an arbitrary view. The popup window is a floating container that appears on top of the current activity
表示一种弹窗,类似于AlertDialog,但可以显示任意view,浮动在当前activity的顶部(的任意位置),进行信息展示和UI交互。由于自定义布局比较方便,并且位置比较自由,所以很受开发者青睐。
使用方法: