title: Dynamically Increase the text count on click in BaseAdapter
body: <p>I have Like Button In Layout and set the text "like 0" , i Have Set in Base Adapter , When I click on Like Buttton, the text will increase without refresh the whole Activity Like in facebook app , I am stuck on three days , i have read and implements almost every answer of stackoverflow , but not get the solution. I hope i will get the answer. Here is My Base Adapter &lt;-------> </p>
  
  <pre><code>public class FeedAdaptorView   extends BaseAdapter{
  
    ArrayList&lt;HashMap&lt;String, String&gt;&gt; data;
  
          HashMap&lt;String, String&gt; resultp = new HashMap&lt;String, String&gt;();
          String UserID;
       public FeedAdaptorView(Context context,
                  ArrayList&lt;HashMap&lt;String, String&gt;&gt; arraylist, String uSERid2) {
              this.context = context;
              data = arraylist;
  
          }
          public class ViewHolder {
              TextView name,time,status,likecount;
              ImageView userimage,postimage;
              Button like,comment,share;
  
          }
          @Override
          public int getCount() {
              return data.size();
          }
  
          @Override
          public Object getItem(int position) {
              return null;
          }
  
          @Override
          public long getItemId(int position) {
              return position;
          }
  
          public View getView(final int position, View convertView, final ViewGroup parent) {
  
  
                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=(Button)convertView.findViewById(R.id.like);
                    holder.comment=(Button)convertView.findViewById(R.id.comment);
                    holder.pos=position;
  
                    convertView.setTag(holder);
                }
                else {
                  holder = (ViewHolder) convertView.getTag();
              }
                holder.like.setTag(pos);
           /*   inflater = (LayoutInflater) context
              holder.comment.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                    ((ListView) parent).performItemClick(v, position, 0);
              }
          });         .getSystemService(Context.LAYOUT_INFLATER_SERVICE);*/
  
         holder.comment.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                    ((ListView) parent).performItemClick(v, position, 0);
              }
          });
         holder.postimage.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                    ((ListView) parent).performItemClick(v, position, 0);
              }
          });
         holder.like.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
  
                      Toast.makeText(context, "You Liked The Post", Toast.LENGTH_SHORT).show();
  
             holder.like.setText("Like"+"4");
  
             notifyDataSetChanged();
      // here i am calling the web services for like button update
     new likepost().execute();
  
              }
          }); 
  </code></pre>
  
  <p>&lt;---------------------------------></p>
  
  <pre><code>webservice callin method
  class likepost extends AsyncTask&lt;Void, Void, Void&gt; 
          {
              int flag=0;
           @Override
           protected void onPreExecute()
           {
            super.onPreExecute();
            // Create a progressdialog
            mProgressDialog = new ProgressDialog(context);
            // Set progressdialog message
            mProgressDialog.setMessage("Loading...");
            mProgressDialog.setIndeterminate(false);
            mProgressDialog.setCancelable(false);
            // Show progressdialog
            mProgressDialog.show();
           }
  
           @Override
           protected Void doInBackground(Void... args0) {
            List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;();
  
  
                     String Status="1";
            String ID=feedid;
  
            params.add(new BasicNameValuePair("UserID",UserID));
            params.add(new BasicNameValuePair("FeedId",ID));
            params.add(new BasicNameValuePair("like_status",Status));
  
            JSONObject json = jsonParser.makeHttpRequest(AppControllerClass.FeedLike,"POST", params);
            Log.d("Create Response", json.toString());
  
            try{
             if(json!=null)
             {
               String status=json.getString("status");
               if(status.equals("Success"))
               {
                flag=1;
               // Toast.makeText(context, "You Liked The Post", Toast.LENGTH_SHORT).show();
               }
               else
               {
               flag=2;
               //Toast.makeText(context, "Check The Connection", Toast.LENGTH_SHORT).show(); 
               }
             }
             else{
              flag=2;
             }
  
            }
            catch (JSONException e) {
             e.printStackTrace();
            }
  
  
            return null;
           }
           @Override
           protected void onPostExecute(Void args) 
           {
            mProgressDialog.dismiss();
            if(flag==1)
            {
             Toast.makeText(context, "You Liked The Post", Toast.LENGTH_SHORT).show();
  
            }
            else if (flag==2) 
            {
             Toast.makeText(context, "Check The Connection", Toast.LENGTH_SHORT).show(); 
            } 
  
  
  
           }
  </code></pre>