Android - Stop Popup from closing if clicked outside of it's bounds
I've got a Popup which mostly works. If I click an item within it, it does what it should etc. The only problem I have is if I click outside of it, the Popup automatically closes, which isn't what I want.
populateListAdapter();
popuplistview.setAdapter(mAdapter2);
pw.setIgnoreCheekPress();
pw.setOutsideTouchable(false);
pw.setTouchable(true);
pw.showAtLo开发者_StackOverflowcation(this.findViewById(R.id.explosionlayout), Gravity.RIGHT, 0, 0); // Popup the popup!! (Show it NOW).
Setting setOutsideTouchable to false, seems to make no difference.
And, does anyone know what 'CheekPress' is for ?
You could just use a Dialog instead. The check press is an old experimental feature that is no longer used.
精彩评论