title: Android button to show and hide the same popup
body: <p>Could anyone please tell me that how is it possible to show and hide the same popup window using a single button.</p>
  
  <p>suggestions welcome.</p>
  
  <hr>
  
  <p>Popup means that when i clicked on a menu button it showing a popup window which contains the listview and when i clicked on the menu button again and touches anywhere on the screen,the popwindow should disappear.</p>