在Activity中药使用Popupwindow,但是调用popWindow.showAsDropDown(anchor);来显示的时候会报错,报错的内容是: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
在Activity中药使用Popupwindow,但是调用popWindow.showAsDropDown(anchor);来显示的时候会报错,报错的内容是: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?