Created
August 5, 2014 09:30
-
-
Save Reacoder/6b6e65d7496e43c96364 to your computer and use it in GitHub Desktop.
PopupWindow - Dismiss when clicked outside
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mFilterWindow = new PopupWindow(popupLayout, | |
WindowManager.LayoutParams.WRAP_CONTENT, | |
WindowManager.LayoutParams.WRAP_CONTENT); | |
mFilterWindow.setOutsideTouchable(true); | |
mFilterWindow.setBackgroundDrawable(new ColorDrawable()); | |
mFilterWindow.setFocusable(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment