title: Android onDraw called a large number of times
body: <p>In the following snippet the <code>onDraw</code> method is called around 10-15 times. Can anyone explain this behaviour</p>
  
  <pre><code>LinearLayout ll = new LinearLayout(this);
          View v = new View(this) {
              @Override
              protected void onDraw(Canvas canvas) {
                  // TODO Auto-generated method stub
                  System.out.println("large view on draw called");
                  super.onDraw(canvas);
              }
          };
          v.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, 2000));
          LinearLayout ll2 = new LinearLayout(this);
          ll2.addView(v);
          ScrollView sv = new ScrollView(this);
          sv.addView(ll2);
          ll.addView(sv);
          LinearLayout ll1 = new LinearLayout(this);
          ll1.addView(ll);
  </code></pre>