title: Get Views from DialogFragment
body: <p>Implemented a dialog fragement this way:</p>
  
  <pre><code>public class ProgressFragment extends DialogFragment {
  
  @NonNull
  @Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
      View v = getActivity().getLayoutInflater().inflate(R.layout.installation_page, null);
      AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
  
      titleView = (TextView) v.findViewById(R.id.progressText);
      titleView.setText("progress");
      builder.setView(v);
      return builder.create();
  }
  
   TextView titleView;
  
  public TextView getTextView() {
      return titleView;
  }
  </code></pre>
  
  <p>and i want to be able to update content of titleView, from whereever it is called.
   like:</p>
  
  <pre><code>ProgressFragment progressFragment = new ProgressFragment();
  progressFragment.show(getSupportFragmentManager(),"");
  </code></pre>
  
  <p>issue is triers like:</p>
  
  <pre><code>((TextView)progressFragment.getDialog().findViewById(R.id.progressText)).setText("text");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>progressFragment.getTextView().setText("text");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>((TextView)progressFragment.getView().findViewById(R.id.progressText)).setText("working in this place");
  </code></pre>
  
  <p>all returns null. How do i do this. Thanks</p>