title: Add view to already existing xml viewgroup in code
body: <p>I would like to be able to add a view to an already existing xml layout in code:</p>
  
  <pre><code>        LinearLayout ll = (LinearLayout) findViewById(R.layout.common_list);
  
          TextView tv = new TextView(this);
          tv.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
          tv.setText("sample text");
          ll.addView(tv);
  
          setContentView(ll); 
  </code></pre>
  
  <p>When creating a new LinearLayout in code it works, but when using a Resource like in the code above it doesn’t.</p>
  
  <p>common_list.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
  
      &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
      android:gravity="center_horizontal"
      android:text="Quick List"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>