原文: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