在使用PopupWindow时报如下错误:
android.view.WindowManager$BadTokenException: Unable to add window token null……
PopupWindow必须在某个事件中显示或者是开启一个新线程去调用,不能直接在onCreate方法中显示一个PopupWindow,否则永远会报错。
写在20120410:PopupWindow使用报错
猜你喜欢
转载自meohao.iteye.com/blog/1912821
今日推荐
周排行