Here is my code that results in only last value of Employee List 

```
 public void addCheckBoxesView()
     {
         Employee ee;
         CheckBox chkbox;
         ArrayList<Employee> employee_list= initEmployees();
         for(int i =0; i<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);
         }
     }

```