title: Return values from DialogFragment
body: <p>I am doing task in which I need to show a dialog after clicking on <code>EditText</code>. In that dialog I show contents with <code>RadioButton</code>s using <code>RecyclerView</code>. </p>
  
  <p>Now, what I want to do is, after selecting RadioButton (content which is in the RecyclerView) from dialog, it should return value of that content and then dialog should be dismissed.</p>
  
  <p>To generate a dialog I've used a <code>DialogFragment</code>.</p>
  
  <p>As I'm new in android development, I am totally confused and unable to find the solution. </p>