title: Full Screen Dialog, programmatically setting text
body: <p>I have a fullscreen dialog (defined in <code>FullScreenDialog()</code>) being shown on click of a button, but would like to be able to also programmatically set elements of the dialog. Something like this in the host fragment's <code>onCreateView()</code>:</p>
  <pre><code>override fun onCreateView(
          inflater: LayoutInflater,
          container: ViewGroup?,
          savedInstanceState: Bundle?
  ): View? {
  
      view.btn_computePaletteFragment.setOnClickListener {
  
          val fragmentManager = fragmentManager
          val fullScreenDialog = FullScreenDialog()
          val transaction = fragmentManager?.beginTransaction()
          transaction?.add(android.R.id.content, fullScreenDialog)?.addToBackStack(null)?.commit()
  
          fullScreenDialog.dialog_title.text = &quot;Computed Palette Input&quot;
  
      }
  
      return view
  }
  </code></pre>
  <p>and the corresponding class for the custom fullscreen dialog Fragment:</p>
  <pre><code>class FullScreenDialog : DialogFragment() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
      }
  
      override fun onCreateView(
              inflater: LayoutInflater,
              container: ViewGroup?,
              savedInstanceState: Bundle?
      ): View? {
          val view = inflater.inflate(org.plainsound.hejicalc.R.layout.fs_dialog, container, false)
          view.button_close.setOnClickListener { dismiss() }
          return view
      }
  
  }
  </code></pre>
  <p>However, I get a Null pointer exception: <code>Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference</code>. What is the correct way to do this?</p>