title: How can I click the outside of widget and the widget dismiss?
body: <p>The following screenshor is my a part of my project, the gray list I use a listview instead of <code>popupwindow</code>.
  but I want to realize the effect like <code>popupwindow</code> when I click the outside part of popupwindow,the pop will dismiss.
  <a href="https://i.stack.imgur.com/fnKAK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fnKAK.png" alt="enter image description here"></a></p>
  
  <p>what I can do for that ,please teach me ,thanks advanced</p>