title: How to make a layout to behave like AlertDialog in Android
body: <p>The following Screenshot represents my Applications Layout</p>
  
  <p><a href="https://i.stack.imgur.com/a2fhl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a2fhl.png" alt="LAYOUT WITH BUTTTONS"></a></p>
  
  <p>Is there a way for the complete Layout View (Parent) to disappear completely if I click anywhere on the screen excluding the Buttons by Code. </p>