title: Text values are changed in customized listview when scroll the listview in android?
body: <p>In my application am using customized list-view with text view,edit-text and buttons.When i click the button in "0"Th position and am change the text view values in "0"Th position .when i scroll down the list-view the values in "0"Th position text view changed to what ever in initial state.</p>
  
  <p><strong>My base adapter class</strong></p>
  
  <pre><code>public class sample extends BaseAdapter{
  
  public ArrayList&lt;HashMap&lt;String, String&gt;&gt; list;
  Activity activity;
  
  public sample(Activity activity,ArrayList&lt;HashMap&lt;String, String&gt;&gt; list) {
      super();
      this.activity = activity;
      this.list = list;
  }
  
  public int getCount() {
      // TODO Auto-generated method stub
      return list.size();
  }
  
  public Object getItem(int position) {
      // TODO Auto-generated method stub
      return list.get(position);
  }
  
  public long getItemId(int position) {
      // TODO Auto-generated method stub
      return 0;
  }
  
  class ViewHolder {
  
      Button order;
      TextView item_name, order_qty;
      EditText et_quantity;
  
  }
  
  public View getView(final int position, View convertView,final ViewGroup parent) {
      // TODO Auto-generated method stub
  
  
  
      final ViewHolder holder;
      LayoutInflater inflater = activity.getLayoutInflater();
  
      if (convertView == null) {
  
          convertView = inflater.inflate(R.layout.order_custom, null);
  
          holder = new ViewHolder();
  
          holder.order = (Button) convertView.findViewById(R.id.order);
          holder.item_name = (TextView) convertView.findViewById(R.id.item_name);
          holder.order_qty = (TextView) convertView.findViewById(R.id.order_count);
  
          convertView.setTag(holder);
  
      } else {
          holder = (ViewHolder) convertView.getTag();
      }
  try{
      HashMap&lt;String, String&gt; map = list.get(position);
  
      holder.item_name.setText(map.get("name"));
  
      //Log.v("Available or not", ""+map.get("available"));
  
  
  }catch(Exception e){
      e.printStackTrace();
  }
  
  
  holder.order.setOnClickListener(new View.OnClickListener() {
  
      public void onClick(View arg0) {
          // TODO Auto-generated method stub
  
          //here am click the button to change order count text value
          int qty = Integer.valueOf(""+holder.order_qty.getText().toString());
  
          qty++;
  
          holder.order_qty.setText(""+String.valueOf(qty));
   }
  });
  
  
  return convertView;
  }
  
  }
  </code></pre>
  
  <p>i don't know why the text values changed to initial state when scroll down the customized list view.Can any one know please help me to solve this issue</p>