title: Canvas does not draw in Custom View
body: <p>I created a Custom View CircleView like this:</p>
  
  <pre><code>public class CircleView extends LinearLayout {
  
      Paint paint1;
      public CircleView(Context context) {
          super(context);
          init();
      }   
      public CircleView(Context context, AttributeSet attrs) {
          super(context, attrs);
          init();
      }
      public void init() {
          paint1 = new Paint();
          paint1.setColor(Color.RED); 
      }       
      protected void onDraw(Canvas canvas) {
          //super.onDraw(canvas);         
          canvas.drawCircle(50, 50, 25, paint1);
          this.draw(canvas);  
      }
  }
  </code></pre>
  
  <p>Then I included it on my Activity's layout root <code>&lt;RelativeLayout&gt;</code>:</p>
  
  <pre><code>  &lt;com.turkidroid.test.CircleView
        android:id="@+id/circle_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" 
        android:layout_centerInParent="true"  /&gt;  
  </code></pre>
  
  <p>However, nothing was drawn!</p>
  
  <ul>
  <li>Am I implementing the Custom View right?</li>
  <li>Or is it how I used the Custom View?</li>
  </ul>
  
  <p>Some Info:</p>
  
  <ul>
  <li>Both CircleView and MyActivity are in the same package: <code>com.turkidroid.test</code>.</li>
  <li>In <code>onDraw()</code> method, I tried including <code>super.onDraw()</code> and commenting it.</li>
  <li>I know I can draw a circle with much simpler approaches but my CircleView <em>will</em> contain more than drawing a circle. I need to make it a Custom View.</li>
  </ul>