adding a View programmatically
<p>I'm completely stumped on the use of <code>ViewGroup</code> and adding views programmatically. I've got an overriden <code>ViewGroup</code> class to which I want to add a <code>View</code>.  Here is the constructor:</p>

<pre><code>public TestView(Context context) {
    super(context);

    textView = new TextView(context);
    textView.setText("This is a test.");
    textView.setId(1);
    textView.setTextColor(Color.rgb(0, 0, 0));
    textView.setVisibility(VISIBLE);
    addView(textView, 
       new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
}
</code></pre>

<p>I can see everything I draw in the <code>ViewGroup</code>'s <code>onDraw()</code> override, but I never see the textView getting drawn. This should be easy, so what am I missing?</p>

<p>Thanks!</p>
