title: how to update listview item on item click?
body: <p>I have like button in every listitem when i click like button i am calling service to push data to server and finally based on response i want to change like button.i am using below code to change </p>
  
  <p>in activity class</p>
  
  <pre><code>CustomSimpleAdapter adapter = new CustomSimpleAdapter (
                      this, arr,
                      R.layout.listviewitem, new String[] {
                              "count", "likes"}, new int[] { 
                              R.id.counttxt, 
                              R.id.likes},list);
              list.setAdapter(adapter);
  </code></pre>
  
  <p>in custom simpleAdater class</p>
  
  <pre><code>  public View getView(final int position, View convertView, ViewGroup parent) {
              View vi = convertView;
              if (convertView == null) {
                  holder = new ViewHolder();
                  vi = inflater.inflate(R.layout.listviewitem, null);
                  holder.like = (TextView) vi.findViewById(R.id.like); // title
                  holder.count= (TextView) vi.findViewById(R.id.counttxt); // artist
                     vi.setTag(holder);
              } else {
                  holder = (ViewHolder) convertView.getTag();
              }
  
                holder.like.setId(position);
          holder.like.setOnClickListener(new OnClickListener() {
              @Override
              public void onClick(View v) {
                      int listItemPosition = v.getId();
  //calling web service here based on response i want to increase count size
  
  if(respone.equal("success")
  {
  updatecount(listItemPosition );
  }
  
              }
          });
  
  
  
  private void updatecount(int index) {
          View v = list.getChildAt(index - list.getFirstVisiblePosition());
              someText1 = (TextView) v.findViewById(R.id.counttxt);//here i am getting null
          int i = Integer.parseInt(data.get(index).get("Count"));
          i++;
          someText1.setText(Integer.toString(i) + "count");
      }
  </code></pre>
  
  <p>when i updating data i am getting null values of listview item.if any one have idea please help me.</p>