Adding View to a Custom ViewGroup
<p>I am trying to add Views to a custom ViewGroup.  The ViewGroup gets drawn, but no Views that were added to it are visible.  LineView's (which extends a View) onDraw() method does not get called.  What am I doing wrong?</p>

<pre><code> public class TestActivity extends Activity {

    protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         ShapeView shapeView = new ShapeView(this);
         shapeView.setBackgroundColor(Color.RED);
         drawContainer = (RelativeLayout)findViewById(R.id.draw_container);
         drawContainer.addView(shapeView);   
    }
 }


 public class ShapeView extends ViewGroup {

     private LineView mLineView;

     public ShapeView (Context context) {
         super(context);
         RelativeLayout.LayoutParams p = new RelativeLayout.LayoutParams(200, 200);
         this.setLayoutParams(p); 
         mLineView = new LineView(context);
         this.addView(mLineView);   
     }     
 }
</code></pre>
