提示Activity not running的异常

在Activity中使用PopupWindow时,有时会提示Activity not running的异常。这是因为Activity还没有显示出来就弹出PopupWindow了。解决的方式是需要重写onWindowFocusChanged()方法

猜你喜欢

转载自blog.csdn.net/a75784326/article/details/88363818