title: Dismiss dialog when click on dialog itself
body: <p>I have a dialog in my app, which contain views.How will i dismiss my dialog,when i click on it?
  It not necessarily on click is on views, but anywhere in dialog.<br>
   Need complete procedure.I searched for hour, but either its view on click solution or outside dialog click solution. So suggest solution to Dismiss dialog when click in dialog area.</p>