title: Android How to update a TextView within a ListView's HeaderView
body: <p>I have a ListView that I add a headerView as below. When the user clicks a button, I attempt to update a TextView that is inside the ListView's header View</p>
  
  <pre><code>if(mHeaderView == null){
      mHeaderView = (LinearLayout) activity.getLayoutInflater().inflate(R.layout.header_report, listViewReports, false);
  }
  
  TextView textViewName = (TextView) mHeaderView.findViewById(R.id.report_header_name);
  textViewName.setText(student.getFullName();
  </code></pre>
  
  <p><strong>The TextView only updates if the TextView changes size</strong> - for example if the student.getFullName() returns a longer name causing the textView to wrap to another line.</p>
  
  <p>I have tried invalidating <code>textViewName</code> and <code>mHeaderView</code>. Also I have tried having <code>textViewName</code> as a class variable. Neither have worked.</p>
  
  <p>What would be the proper way to achieve this?</p>