title: AlertDialog how to handle click outside of dialog view
body: <p>I have <code>AlertDialog</code> and there are some buttons. By clicking them, some function/method begin to work.</p>
  
  <p>But what to do if user clicks outside of AlertDialog view? </p>
  
  <p>I want to start specific function then user clicks at empty field (outside of dialog view)</p>
  
  <p><a href="https://i.stack.imgur.com/WX3Dt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WX3Dt.png" alt="enter image description here"></a></p>