You'll need to add an ID to your XML code like so:
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/textToChange
android:gravity="center_vertical"
<!-- Remove this line because you won't need it -->
android:text="@string/list_header"
android:textSize="22sp"
android:textStyle="bold" >
</TextView>
Now in your main.java file, find the text view and set it's text like so:
//Declare this as a private variable:
private TextView textView1;
//Then, wherever your header declared, do this:
textView1 = (TextView) findViewById(R.id.textToChange);
textView1.setText("Your desired text");
Hope this helps!