title: setContentView() with XML layout vs View
body: <p>In Android, I'm used to setting layouts with the XML file</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  </code></pre>
  
  <p>But you can also set the content using a View in Java</p>
  
  <pre><code>    // Create the text view
      TextView textView = new TextView(this);
      textView.setTextSize(40);
      textView.setText(message);
  
      // Set the text view as the activity layout
      setContentView(textView);
  </code></pre>
  
  <p>This has the side effect of not being able to use the layout file any more.</p>
  
  <p>Is there anyway I can programatically set, for example, a text value and still use the layout.xml file?</p>