title: How to add a TextView to a LinearLayout dynamically in Android?
body: <p>I try to add a <code>TextView</code> to a <code>LinearLayout</code> dynamically such as in the following code, but it doesn't appear when I run the application?</p>
  
  <pre><code>setContentView(R.layout.advanced);
  
  m_vwJokeLayout=(LinearLayout) this.findViewById(R.id.m_vwJokeLayout);
  m_vwJokeEditText=(EditText) this.findViewById(R.id.m_vwJokeEditText);
  m_vwJokeButton=(Button) this.findViewById(R.id.m_vwJokeButton);
  
  TextView tv=new TextView(this);
  tv.setText("test");
  this.m_vwJokeLayout.addView(tv);
  </code></pre>
  
  <p>What's the problem?</p>