title: Dynamically Added Checkboxes Shows Only Last Value
body: <p>Here is my code that results in only last value of Employee List </p>
  
  <pre><code> public void addCheckBoxesView()
       {
           Employee ee;
           CheckBox chkbox;
           ArrayList&lt;Employee&gt; employee_list= initEmployees();
           for(int i =0; i&lt;employee_list.size();i++)
           {
               ee = (Employee) employee_list.get(i);
               chkbox = new CheckBox(this);
               chkbox.setId(ee.getID());
               chkbox.setText(ee.getName());
               layout.addView(chkbox);
           }
       }
  </code></pre>