Is it possible to have components other than List in ListActivity
<p>By using the following code.</p>

<p><strong>BuyActivity.java</strong></p>

<pre><code>public class BuyActivity extends ListActivity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.transaction_list_view);        
        OrderAdapter orderAdapter = new OrderAdapter(this, 
            R.layout.custom_row_view, new ArrayList&lt;Object&gt;());
        setListAdapter(orderAdapter);        
        orderAdapter.add(new Object());
        orderAdapter.add(new Object());    
    }
}
</code></pre>

<p><strong>transaction_list_view.xml</strong></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"&gt;
    &lt;ListView android:id="@id/android:list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="2"
        android:drawSelectorOnTop="false"&gt;
    &lt;/ListView&gt;
    &lt;TextView android:id="@id/android:empty"
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:text="No data"
    /&gt;  
&lt;/LinearLayout&gt;
</code></pre>

<p><strong>custom_row_view.xml</strong></p>

<p>Please refer to <a href="https://github.com/yccheok/jstock-android/blob/c89aede414fd73e45475cf5b0abd1d5cc1164150/res/layout/custom_row_view.xml" rel="nofollow">custom_row_view.xml</a></p>

<p>I was able to get the following outcome.</p>

<p><img src="http://i.stack.imgur.com/zSE1U.png" alt="enter image description here"></p>

<p>Besides list, I would also like to have a static label at the bottom of ListActivity.</p>

<p>I try</p>

<p><strong>transaction_list_view.xml</strong></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"&gt;
    &lt;ListView android:id="@id/android:list"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="2"
        android:drawSelectorOnTop="false"&gt;
    &lt;/ListView&gt;
    &lt;TextView android:id="@id/android:empty"
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:text="No data"
    /&gt;
    &lt;TextView
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent" 
        android:text="THIS IS TOTAL STATIC LABEL"
    /&gt;  
&lt;/LinearLayout&gt;
</code></pre>

<p>But I am getting</p>

<p><img src="http://i.stack.imgur.com/KOLDm.png" alt="enter image description here"></p>

<p>What my expectation is</p>

<p><img src="http://i.stack.imgur.com/gmwp3.png" alt="enter image description here"></p>

<p>Is there anything I had missed out?</p>
