popwindow 有時候會遇到editText無法輸入,無法獲取焦點的問題。 設(shè)置獲取焦點 popupWindow.setFocusable(true); 如果設(shè)置后還不行,換個模擬器試試。