title: i made check box dynamically but i can not see them
body: <p>i have an app that make check box dynamically.
  A button and edit text,i insert some thing in the edit text then click button after that a check box with that text appear.
  but i have problem with that.</p>
  
  <p>i am completely confuse, i cannot see them!!!! and i do not have any error!!!!????</p>
  
  <p>can some one help me ? :(</p>
  
  <pre><code>...
      public int i2 = 0;
  
  ...
  final EditText et1 = (EditText) findViewById(R.id.editText1);
  final Button bnext = (Button) findViewById(R.id.button1);
  //
  final LinearLayout ll = new LinearLayout(this);
  ll.setOrientation(LinearLayout.VERTICAL);
  //
  bnext.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View v) {
  //getting text from edit text
      String str_et1 = et1.getText().toString();
      do {
          CheckBox cb = new CheckBox(getApplicationContext());
          cb.setId(i2);//set id to each checkbox
          cb.setText(str_et1);//set text to each checkbox
          ll.addView(cb);
         } while (bnext.isDirty());//add when ever i clicked
      i2++;//this the counter
          }
          });
  </code></pre>