title: How to Update the Text on click of list view items in baseadapter
body: <p>I am new in android and i am stuck in this problems , i have a text that will count the likes , onclick of like will set the total likes in text view.what code i ahve to written to increment the holder.likestatus on click of like. please help me....i am serching for 3 days bt didnt get the exact answer.</p>
  
  <p>Here Is baseadapter</p>
  
  <pre><code>    public View getView(final int position, View convertView, final ViewGroup parent) {
              // Declare Variables
            //  TextView rank;
            //  TextView country;
              TextView likestat = null;
                if(convertView==null){
                    LayoutInflater inflater = ((Activity) context).getLayoutInflater();
                    convertView = inflater.inflate(R.layout.feed_item, null);
                    holder=new ViewHolder();
                    pos=getItemViewType(position);
                    holder.name = (TextView) convertView.findViewById(R.id.name);
  
                    holder.status=(TextView)convertView.findViewById(R.id.txtStatusMsg);
                    holder.userimage=(ImageView)convertView.findViewById(R.id.profilePic);
                    holder.postimage=(ImageView)convertView.findViewById(R.id.feedImage1);
                    holder.like=(TextView)convertView.findViewById(R.id.like);
                  //  likestat=(TextView)convertView.findViewById(R.id.likecount);
                    holder.likestatus=(TextView)convertView.findViewById(R.id.likecount);
                    holder.comment=(TextView)convertView.findViewById(R.id.comment);
                    holder.commentstatus=(TextView)convertView.findViewById(R.id.commentcount);
                    holder.pos=position;
  
                    convertView.setTag(holder);
                }
                else {
                  holder = (ViewHolder) convertView.getTag();
              }
                holder.like.setTag(pos);
  
         holder.comment.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  feedid=data.get(position).get("TempFeed_id");
                  openDialog();
                  new Comment().execute();
              }
          });
         holder.postimage.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                    feedimage=data.get(position).get("TempPost_Image");
                    feedimagediaload();
              }
          });
  
           /*   View itemView = inflater.inflate(R.layout.viewitem, parent, false);*/
              // Get the position
              resultp = data.get(position);
              String count=resultp.get("TempLike");
              holder.likestatus.setText(resultp.get("TempLike"));
              holder.comment.setText("Comment"+" "+resultp.get("TempCommnt"));
              holder.commentstatus.setText(resultp.get("TempCommnt"));
              // Locate the TextViews in listview_item.xml
              holder.name.setText(resultp.get("TempFirstName"));
  
              String status=resultp.get("Temp_Status");
  
             holder.like.setOnClickListener(new OnClickListener() {
  
                  @Override
                  public void onClick(View v) {
                      feedid=data.get(position).get("TempFeed_id");
                      String pos=data.get(position).get("TempLike");
                      int c=Integer.parseInt(pos);
                         c++;
                         pos=c+"";
  
                       holder.likestatus.setText(pos);
                       ****// no increment on the like
                       //what code i have to written here****
  
                      new likepost().execute();
                      //here i call execute method to like the post
  
  
  
                  }
              });
  </code></pre>