原文:android AlertDialog显示错误 Unable to add window token null is not for an application解决办法

public voidonCreate BundlesavedInstanceState super.onCreate savedInstanceState setContentView R.layout.activity main findViewById R.id.button .setOnClickListener newButton.OnClickListener public void ...

2012-08-23 11:47 0 15272 推荐指数:

查看详情

popupwindow使用之异常:unable to add window -- token null is not valid

使用popwindow中又碰到一个白痴问题,在此留作纪念,希望对大家有帮助 popupwindow之所以叫这个名字,肯定是要从某个地方弹出啦,但是从哪个地方呢?必须是指定一个view嘛 void android.widget.PopupWindow.showAtLocation(View ...

Mon Jan 04 19:58:00 CST 2016 0 2933
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM