Android make view disappear by clicking outside of it
I have some views that I make visible upon a button press. I want them to disappear if I click outside of those views. How would this be done on Android? Also, I realize that the "back button" can also assist Android users with this - I might use that as a secondary way to close the views - but some of the tablets aren't even using a 'physical' back button anymore, it has been very de-emphasized. An easy/stupid way: Create a dummy empty view (let's say ImageView with no source), make it fill parent If it is clicked, then do what you want to do. You need to have the root tag in your XML file to