title: How to add a dynamically created LinearLayout to a ScrollView?
body: <p>I want to dynamically add some widgets like so:</p>
  
  <pre><code>LinearLayout llay = new LinearLayout(this); 
  llay.setOrientation(LinearLayout.HORIZONTAL); 
  
  LinearLayout.LayoutParams llp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 
  llp.weight = 1.0f; 
  
  CheckBox cb = new CheckBox(getApplicationContext()); 
  cb.setText("1"); 
  cb.setLayoutParams(llp); 
  llay.addView(cb);
  
  ScrollView svh = (ScrollView) findViewById(R.id.scrollViewHost);
  svh.AddView(llay);
  </code></pre>
  
  <p>...but I'm getting, "The method AddView(LinearLayout) is undefined for the type ScrollView"</p>
  
  <p>So what should I do to add the LinearLayout to the existing ScrollView?</p>