title: Customlistview with checkbox- while scrolling check state is interchanged
body: <p>I use customize listview with checkbox.while scrolling the  listview the checked state is interchanged how to control interchanged and set it default ie checked items i selected</p>
  
  <p>code for your reference</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
          // TODO Auto-generated method stub
  
          if (convertView == null) 
          {
              convertView=lInflater.inflate(R.layout.subtag, null);
              holder=new viewHolder();
              holder.check=(CheckBox)convertView.findViewById(R.id.subtag_checkCatagory);
              holder.check.setOnCheckedChangeListener(new OnCheckedChangeListener() {
  
                  public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                      // TODO Auto-generated method stub
                      if(isChecked)
                      {
                          System.out.println("checked item:"+buttonView.getText());
                          temp.add(buttonView.getText().toString());
                      }
                      else
                      {
                          temp.remove(buttonView.getText().toString());
  
                      }
                  }
              });
              convertView.setTag(holder);
          }
          else
          {   
              holder = (viewHolder) convertView.getTag();
          }
  
  
          holder.check.setText(list.get(position));
  
          return convertView;
      }
  </code></pre>