title: Updating a textview from the adapter
body: <p>I have two views one for list and the other one for the header. The list has an item and a checkbox without text. I am trying to update a textview in the header section with the total count of selected items on each checkbox click. But it is not getting updated. Here is my code in the adapter. Can anybody help with a working solution?</p>
  
  <pre><code>@Override
  public View getView(final int position, View convertView, final ViewGroup parent) {
  
     LayoutInflater inflater = (LayoutInflater) context
             .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  
     View pview=inflater.inflate(R.layout.activity_main, parent,false);
     TextView txtcnt= (TextView) pview.findViewById(R.id.txtcount);
     txtcnt.setText("8"); //This code not updating the textview.
   ........
  </code></pre>