我有一个弹出窗口,它主要工作。如果我单击其中的一个项目,它会执行它应该做的事情等。我唯一的问题是如果我在它之外单击,弹出窗口会自动关闭,这不是我想要的。
populateListAdapter();
popuplistview.setAdapter(mAdapter2);
pw.setIgnoreCheekPress();
pw.setOutsideTouchable(false);
pw.setTouchable(true);
pw.showAtLocation(this.findViewById(R.id.explosionlayout), Gravity.RIGHT, 0, 0); // Popup the popup!! (Show it NOW).
将 setOutsideTouchable 设置为 false,似乎没有什么区别。
而且,有人知道“CheekPress”是干什么用的吗?