Android - Footer not displaying text
<p>I've got 2 layouts (main.xml and footer_layout.xml) and am trying to append the footer_layout to my listview in main.  I can get it to display but it won't set the text when I use tvFooter.setText();</p>

<p>Main.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;ListView 
            android:id="@+id/listIssues"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"&gt;
    &lt;/ListView&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>footer_layout.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" 
    android:gravity="center" 
    android:layout_gravity="center" &gt;

    &lt;TextView  
        android:id="@+id/footerText"  
        android:layout_width="wrap_content"  
        android:layout_height="wrap_content"  
        android:textSize="14dip"  
        android:textStyle="bold"  
        android:layout_marginRight="5dip"&gt; 
    &lt;/TextView&gt;  

&lt;/LinearLayout&gt;
</code></pre>

<p>MainActivity code:</p>

<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.footer_layout);

    //Context context = getBaseContext();
    tvFooter = (TextView)findViewById(R.id.footerText);

    //Load listview control.
    setContentView(R.layout.main);
    final Context context = getBaseContext();
    mListViewIssues = (ListView)findViewById(R.id.listIssues);

    int DBVersion = 3;

    tvFooter.setText("DBVersion = " + String.valueOf(DBVersion));

    View footerView =  
            ((LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.footer_layout, null, false); 

    mListViewIssues.addFooterView(footerView); 

    //add data to listview through adapter.
    mListViewIssues.setAdapter(new IssueInfoAdapter(this, creator.queryAll()));
}
</code></pre>

<p>**Note that I removed the code for 'creator' as it wasn't necessary.</p>

<p>This app runs and displays the data but it doesn't display "DBVersion = 3" in the footer like I want.</p>

<p>Any ideas?</p>
